Skip to content

Commit

Permalink
Merge pull request #935 from smukkejohan/patch-native-matchAll
Browse files Browse the repository at this point in the history
Draft: Remove dependency on match-all package, unit-tests for core script tasks
  • Loading branch information
inlife authored Nov 3, 2023
2 parents 47d6be8 + 208fb8c commit f90a1b5
Show file tree
Hide file tree
Showing 15 changed files with 3,408 additions and 478 deletions.
3 changes: 2 additions & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ module.exports = {
"env": {
"commonjs": true,
"es2021": true,
"node": true
"node": true,
"mocha": true
},
"extends": "eslint:recommended",
"parserOptions": {
Expand Down
12 changes: 12 additions & 0 deletions .mocharc.cjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = {
//loader: 'testdouble',
//require: ['src/test/hooks.js', 'src/test/fixtures.js'],
//parallel: true,
jobs: 3,
reporter: 'spec',
timeout: '10000',
spec: ['./**/src/**/*.spec.js'],
global: ['expect', 'td', 'nock'],
'check-leaks': true,
bail: true
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,13 +26,15 @@
"pkg-server": "cross-env NEXRENDER_REQUIRE_PLUGINS=1 pkg packages/nexrender-server/package.json --out-path bin/",
"pkg-prelink": "lerna run --scope @nexrender/core pkg-prelink && lerna run --scope @nexrender/server pkg-prelink",
"pkg": "npm run pkg-prelink && npm run pkg-cli && npm run pkg-server && npm run pkg-worker && npm run pkg-rename",
"test": "npm run lint && lerna bootstrap && node test.js"
"test": "npm run lint && lerna bootstrap && lerna run test"
},
"devDependencies": {
"chai": "^4.3.10",
"cross-env": "^5.2.0",
"eslint": "^8.6.0",
"lerna": "^3.21.0",
"mocha": "^7.1.2",
"pkg": "^5.8.1"
"pkg": "^5.8.1",
"testdouble": "^3.20.0"
}
}
Loading

0 comments on commit f90a1b5

Please sign in to comment.