mirror of
https://github.com/gchq/CyberChef.git
synced 2025-04-24 16:56:15 -04:00
move node test suite into its own grunt command
This commit is contained in:
parent
f22e9ceec6
commit
9d674ce5a7
9 changed files with 116 additions and 73 deletions
12
Gruntfile.js
12
Gruntfile.js
|
@ -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"
|
||||
}
|
||||
},
|
||||
});
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue