mirror of
https://github.com/kunkunsh/kunkun.git
synced 2025-04-13 10:14:37 +00:00

* chore: add extension templates * feat: add create-kunkun and cli package * fix: cli and create-kunkun package location * fix: cli package test * ci: run test for CI pipeline only on Linux The most important E2E test is run with docker, Linux anyways, no need to run on Mac and Windows
14 lines
429 B
TypeScript
14 lines
429 B
TypeScript
import { describe, expect, test } from "bun:test"
|
|
import { getLatestNpmPkgInfo, getLatestNpmPkgVersion } from "../utils"
|
|
|
|
test("getLatestNpmPkgInfo", async () => {
|
|
const pkg = await getLatestNpmPkgInfo("@kksh/vue")
|
|
expect(pkg.name).toBe("@kksh/vue")
|
|
expect(pkg.version).toBeDefined()
|
|
})
|
|
|
|
test("getLatestNpmPkgVersion", async () => {
|
|
const version = await getLatestNpmPkgVersion("@kksh/vue")
|
|
expect(version).toBeDefined()
|
|
})
|