move node test suite into its own grunt command

This commit is contained in:
d98762625 2019-01-04 12:14:02 +00:00
parent f22e9ceec6
commit 9d674ce5a7
9 changed files with 116 additions and 73 deletions

View file

@ -38,9 +38,9 @@ module.exports = function (grunt) {
"A task which runs all the UI tests in the tests directory. The prod task must already have been run.",
["connect:prod", "exec:browserTests"]);
// grunt.registerTask("testnode",
// "Run all the node tests in the tests directory",
// ["clean", "exec:generateConfig", "exec:generateNodeIndex", "exec:generateConfig", "exec:nodeTests"]);
grunt.registerTask("test-node",
"Run all the node tests in the tests directory",
["clean", "exec:generateConfig", "exec:generateNodeIndex", "exec:generateConfig", "exec:nodeTests"]);
grunt.registerTask("docs",
"Compiles documentation in the /docs directory.",
@ -481,9 +481,9 @@ module.exports = function (grunt) {
browserTests: {
command: "./node_modules/.bin/nightwatch --env prod,inline"
},
// nodeTests: {
// command: "node --experimental-modules --no-warnings --no-deprecation tests/node/index.mjs"
// }
nodeTests: {
command: "node --experimental-modules --no-warnings --no-deprecation tests/node/index.mjs"
}
},
});
};