test: 'Tapable'

This commit is contained in:
ULIVZ
2018-08-14 02:43:11 +08:00
parent 57f15ee86e
commit 9424df3510
6 changed files with 603 additions and 18 deletions
+13 -1
View File
@@ -15,8 +15,20 @@ module.exports = {
'test.js',
path.resolve(__dirname, '../test')
],
// projects: [
// '<rootDir>/packages/@vuepress/*',
// {
// displayName: 'test',
// verbose: true,
// runner: 'jest',
// testURL: 'http://localhost/',
// testMatch: [
// '<rootDir>/packages/@vuepress/*.js'
// ]
// }
// ],
moduleNameMapper: {
'^@/(.*)$': '<rootDir>/lib/$1'
'^@/(.*)$': '<rootDir>/$1'
},
transform: {
'^.+\\.js$': '<rootDir>/node_modules/babel-jest',
-2
View File
@@ -12,8 +12,6 @@ if (args.p) {
rawArgs.splice(i, 2)
}
console.log(regex)
;(async () => {
const jestArgs = [
'--env', 'node',