mirror of
https://github.com/logos-storage/logos-storage-nim.git
synced 2026-05-12 14:29:39 +00:00
- add npm run testOnly "test name regex" to run specific tests from the cli - finds available ports for each node to avoid collisions - PORT_BASE env var can be set for containerisation at a later point
31 lines
883 B
JSON
31 lines
883 B
JSON
{
|
|
"name": "logos-storage-js-tests",
|
|
"version": "0.1.0",
|
|
"type": "module",
|
|
"//": {
|
|
"scripts": {
|
|
"test": [
|
|
"Runs all the tests",
|
|
"Usage: `npm test`",
|
|
"Debug: use `npm test --debug` to output TRACE logs and node config to stdout"
|
|
],
|
|
"testOnly": [
|
|
"Run tests with names that match the regex name pattern. Useful for development.",
|
|
"See https://mochajs.org/running/cli/#--grep-regexp--g-regexp for more info on the pattern syntax.",
|
|
"Usage: `npm run testOnly \"$test name regex\"`",
|
|
"Debug: also works with --debug (see above)"
|
|
]
|
|
}
|
|
},
|
|
"scripts": {
|
|
"test": "mocha --timeout 30000 two-node-test.js",
|
|
"testOnly": "sh -c 'mocha --timeout 30000 --grep \"$1\" two-node-test.js' --"
|
|
},
|
|
"dependencies": {
|
|
"koffi": "^2.9.0"
|
|
},
|
|
"devDependencies": {
|
|
"mocha": "^11.7.5"
|
|
}
|
|
}
|