Skip to content

Commit

Permalink
test: Fix test case errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywcjlove committed Oct 3, 2021
1 parent 13a5fab commit 154f8ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
5 changes: 2 additions & 3 deletions package.json
Expand Up @@ -16,8 +16,8 @@
"scripts": {
"prepare": "husky install && npm run build",
"start": "node lib/index.js",
"watch": "tsbb watch --no-esm",
"build": "tsbb build --no-esm",
"watch": "tsbb watch --disable-babel -f src/cli.ts",
"build": "tsbb build --disable-babel -f src/cli.ts",
"prettier": "prettier --write \"**/*.{js,ts,less,md,json}\"",
"coverage": "tsbb test --coverage",
"test": "tsbb test"
Expand Down Expand Up @@ -49,7 +49,6 @@
]
},
"devDependencies": {
"@types/jest": "27.0.1",
"husky": "7.0.2",
"lint-staged": "11.1.2",
"prettier": "2.4.1",
Expand Down
2 changes: 2 additions & 0 deletions test/index.test.ts
@@ -1,8 +1,10 @@
/** @jest-environment node */
import path from 'path';
import FS from 'fs-extra';
import { create, CreateOptions } from '../src/create';

it('create project.', async () => {
jest.spyOn(process, 'exit').mockImplementation();
const opts: CreateOptions = {
_: ['my-app'],
f: true,
Expand Down

0 comments on commit 154f8ed

Please sign in to comment.