test(core): use vitest it
This commit is contained in:
parent
f675887f10
commit
8da6d4e994
2 changed files with 2 additions and 3 deletions
|
@ -12,7 +12,7 @@
|
|||
"template:basic": "pnpm run build && pnpm --filter @templates/basic start",
|
||||
"create": "node ./packages/create-mcfly",
|
||||
"cli": "node ./packages/core/cli/index.js",
|
||||
"test": "vitest .",
|
||||
"test": "vitest --run",
|
||||
"lint": "eslint . --config eslint.config.mjs --cache",
|
||||
"check": "npm run format && npm run lint",
|
||||
"format": "prettier . --write",
|
||||
|
|
|
@ -1,8 +1,7 @@
|
|||
import { execSync } from 'node:child_process'
|
||||
import { consola } from 'consola'
|
||||
import { expect, vi } from 'vitest'
|
||||
import { it, expect, vi } from 'vitest'
|
||||
import { exportedForTest } from '../src/cli/commands/new.js'
|
||||
import { it } from 'node:test'
|
||||
|
||||
const createNew = exportedForTest.createNew
|
||||
const baseCommand = `npm create mcfly@latest`
|
||||
|
|
Loading…
Reference in a new issue