-
-
Notifications
You must be signed in to change notification settings - Fork 448
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* migrate to node test runner * add unit test for serialize
- Loading branch information
Showing
11 changed files
with
353 additions
and
2,444 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,12 +18,10 @@ | |
"webpack": ">=5.61.0" | ||
}, | ||
"devDependencies": { | ||
"@ava/babel": "^1.0.1", | ||
"@babel/cli": "^7.23.0", | ||
"@babel/core": "^7.23.3", | ||
"@babel/eslint-parser": "^7.23.3", | ||
"@babel/preset-env": "^7.23.3", | ||
"ava": "^3.13.0", | ||
"c8": "^8.0.0", | ||
"eslint": "^9.6.0", | ||
"eslint-config-prettier": "^9.1.0", | ||
|
@@ -43,7 +41,7 @@ | |
"prepublish": "yarn run clean && yarn run build", | ||
"preversion": "yarn run test", | ||
"test": "yarn run lint && yarn run build --source-maps && c8 yarn run test-only", | ||
"test-only": "ava" | ||
"test-only": "node --test test/**/*.test.js" | ||
}, | ||
"resolutions": { | ||
"minipass": "6.0.2" | ||
|
@@ -78,18 +76,6 @@ | |
"sourceMap": false, | ||
"instrument": false | ||
}, | ||
"ava": { | ||
"files": [ | ||
"test/**/*.test.js", | ||
"!test/fixtures/**/*", | ||
"!test/helpers/**/*" | ||
], | ||
"babel": { | ||
"compileAsTests": [ | ||
"test/helpers/**/*" | ||
] | ||
} | ||
}, | ||
"lint-staged": { | ||
"scripts/*.js": [ | ||
"prettier --trailing-comma es5 --write", | ||
|
@@ -113,4 +99,4 @@ | |
] | ||
}, | ||
"packageManager": "[email protected]" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
import webpack from "webpack"; | ||
import { promisify } from "util"; | ||
import { promisify } from "node:util"; | ||
export const webpackAsync = promisify(webpack); |
Oops, something went wrong.