Add node tests

This commit is contained in:
Tim Schaub
2021-04-28 15:00:04 -07:00
parent c301d2413b
commit 7b934a06be
61 changed files with 1216 additions and 449 deletions

View File

@@ -13,8 +13,9 @@
"lint": "eslint tasks test src/ol examples config",
"pretest": "npm run lint && npm run typecheck",
"test-rendering": "node test/rendering/test.js",
"test-spec": "npm run karma -- --single-run --log-level error",
"test": "npm run test-spec && npm run test-rendering -- --force",
"test-browser": "npm run karma -- --single-run --log-level error",
"test-node": "mocha --recursive test/node",
"test": "npm run test-browser && npm run test-node && npm run test-rendering -- --force",
"karma": "karma start test/browser/karma.config.cjs",
"start": "npm run serve-examples",
"serve-examples": "webpack serve --config examples/webpack/config.js --mode development",