mirror of
https://github.com/HeyPuter/firefox.git
synced 2026-11-15 05:00:02 -10:00
It looks like there was some (hardware?) changes on TRY which caused the test to run in Coordinated Universal Time timezone, when one test expect it to be CEST. We force the timezone in the test command so it will always be CEST. Differential Revision: https://phabricator.services.mozilla.com/D155818
35 lines
1.6 KiB
JSON
35 lines
1.6 KiB
JSON
{
|
|
"name": "webconsole-tests",
|
|
"version": "0.0.1",
|
|
"scripts": {
|
|
"//": [
|
|
"Here's the script to run tests with `npm test`. Here's what it does: ",
|
|
" * Run mocha on components, middleware, store and utils folders, on .test.js files.",
|
|
" We need to specify them so we don't run unwanted tests (e.g. in node_modules).",
|
|
" * We require jsdom-global to inject `document` and `window` objects which are",
|
|
" not in nodejs natively.",
|
|
" * Finally we require mocha-test-setup where we configure Enzyme and",
|
|
" intercept require() calls with require-hacker and modify them if needed."
|
|
],
|
|
"test": "TZ=Europe/Prague mocha \"./{,!(node_modules)/**}/*.test.js\" -r mock-local-storage -r jsdom-global/register -r ./mocha-test-setup.js",
|
|
"test-ci": "TZ=Europe/Prague mocha \"./{,!(node_modules)/**}/*.test.js\" -r mock-local-storage -r jsdom-global/register -r ./mocha-test-setup.js --reporter json"
|
|
},
|
|
"dependencies": {
|
|
"@babel/core": "^7.8.7",
|
|
"@babel/plugin-proposal-class-properties": "7.10.4",
|
|
"@babel/plugin-proposal-nullish-coalescing-operator": "^7.8.3",
|
|
"@babel/plugin-proposal-optional-chaining": "^7.8.3",
|
|
"@babel/plugin-proposal-private-methods": "^7.16.11",
|
|
"@babel/register": "^7.8.6",
|
|
"babel-plugin-transform-amd-to-commonjs": "1.4.0",
|
|
"enzyme": "^3.3.0",
|
|
"enzyme-adapter-react-16": "^1.1.1",
|
|
"expect": "^1.16.0",
|
|
"jsdom": "^9.4.1",
|
|
"jsdom-global": "^2.0.0",
|
|
"mocha": "^5.0.1",
|
|
"mock-local-storage": "^1.0.5",
|
|
"require-hacker": "^2.1.4",
|
|
"sinon": "^1.17.5"
|
|
}
|
|
} |