Compare commits

..

2 Commits

Author SHA1 Message Date
Corentin Sechet 3c59b53ab1 ci: run javascript unit tests on Jenkins (#75133)
gitea/gadjo/pipeline/head This commit looks good Details
2023-03-08 10:50:54 +01:00
Corentin Sechet f611c731bd js: integrate jest and jsdom (#75131)
gitea/gadjo/pipeline/head This commit looks good Details
2023-03-07 20:46:20 +01:00
4 changed files with 1195 additions and 2149 deletions

3324
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -3,8 +3,8 @@
"test": "jest"
},
"devDependencies": {
"jest": "^29.5.0",
"jest": "^28.1.3",
"jquery": "^3.6.3",
"jsdom": "^21.1.0"
"jsdom": "^19.0.0"
}
}

View File

@ -1,7 +0,0 @@
#!/bin/bash
set -e
pip install nodeenv
nodeenv --python-virtualenv --prebuilt
npm clean-install
pip install $*

View File

@ -1,15 +1,14 @@
[tox]
envlist = codestyle-pylint, jest
envlist = codestyle-pylint, test
toxworkdir = {env:TMPDIR:/tmp}/tox-{env:USER}/gadjo/{env:BRANCH_NAME:}
[testenv]
whitelist_externals = bash
whitelist_externals = npm
deps =
codestyle: pre-commit
pylint: pylint
pylint: pylint-django
install_command =
jest: bash setup-node.sh {opts} {packages}
commands =
codestyle: pre-commit run --all-files --show-diff-on-failure
jest: npx jest
test: npm clean-install
test: npm test