chore: move tests
This commit is contained in:
parent
6d38b057c1
commit
3dee8b73b9
2 changed files with 4 additions and 4 deletions
|
@ -19,7 +19,7 @@
|
|||
"author": "Marc Cataford <c.marcandre@gmail.com>",
|
||||
"license": "MIT",
|
||||
"files": [
|
||||
"dist/**/*.ts"
|
||||
"dist/*.ts"
|
||||
],
|
||||
"bin": "./dist/cli.js",
|
||||
"repository": {
|
||||
|
@ -32,7 +32,7 @@
|
|||
],
|
||||
"scripts": {
|
||||
"prebuild": "rimraf dist",
|
||||
"build": "babel src -d dist --extensions .ts",
|
||||
"build": "babel src/index.ts src/cli.ts -d dist --extensions .ts",
|
||||
"lint": "eslint src/**/*.ts",
|
||||
"lint:fix": "yarn lint --fix",
|
||||
"test": "jest src",
|
||||
|
|
|
@ -3,6 +3,8 @@ import { readFileSync } from 'fs'
|
|||
|
||||
import mockFS from 'mock-fs'
|
||||
|
||||
import runPackwatch from '..'
|
||||
|
||||
jest.mock('child_process')
|
||||
|
||||
function getPackOutput({ packageSize, unpackedSize }) {
|
||||
|
@ -26,8 +28,6 @@ npm notice
|
|||
`
|
||||
}
|
||||
|
||||
import runPackwatch from '.'
|
||||
|
||||
function getManifest() {
|
||||
try {
|
||||
return JSON.parse(readFileSync('.packwatch.json', { encoding: 'utf8' }))
|
Reference in a new issue