mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Popups
synced 2024-12-01 02:36:35 +00:00
33c05394f4
In order to run qunit tests on sources that use common.js modules, set up infra to run qunit tests in the node cli when running: npm run test:node Changes: * Add npm script test:node that runs the tests * Run node tests on CI (npm test) * Add a qunit node test runner: mw-node-qunit * Migrate a test from the root hierarchy and another one from the nested one to prove it works (globs fail otherwise) * reducers/settings.test.js to node qunit to prove it works * counts.test.js to node qunit to prove it works Change-Id: I55d76b7db168f3745e0ac69852c152322ab385c3
29 lines
989 B
JSON
29 lines
989 B
JSON
{
|
|
"private": true,
|
|
"scripts": {
|
|
"start": "webpack -w",
|
|
"build": "webpack",
|
|
"test": "grunt lint && npm run check-built-assets && npm run test:node",
|
|
"doc": "jsduck",
|
|
"check-built-assets": "echo 'CHECKING BUILD SOURCES ARE COMMITED' && rm -rf test-build && mv resources/dist test-build && npm run build && diff -x '*.map' -qr test-build resources/dist && rm -rf test-build",
|
|
"test:node": "mw-node-qunit tests/node-qunit/*.js tests/node-qunit/**/*.js | tap-dot"
|
|
},
|
|
"devDependencies": {
|
|
"eslint-config-wikimedia": "0.3.0",
|
|
"grunt": "1.0.1",
|
|
"grunt-banana-checker": "0.5.0",
|
|
"grunt-cli": "^1.2.0",
|
|
"grunt-contrib-qunit": "^1.2.0",
|
|
"grunt-contrib-watch": "^1.0.0",
|
|
"grunt-eslint": "19.0.0",
|
|
"grunt-jsonlint": "1.1.0",
|
|
"grunt-stylelint": "^0.6.0",
|
|
"mw-node-qunit": "^1.0.1",
|
|
"redux": "3.6.0",
|
|
"redux-thunk": "2.2.0",
|
|
"stylelint-config-wikimedia": "0.3.0",
|
|
"tap-dot": "^1.0.5",
|
|
"webpack": "^1.14.0"
|
|
}
|
|
}
|