Skip to content

Commit

Permalink
Use web test runner instead of deprecated karma.
Browse files Browse the repository at this point in the history
  • Loading branch information
rnixx committed Feb 6, 2024
1 parent e1593e9 commit 30c971d
Show file tree
Hide file tree
Showing 6 changed files with 35 additions and 65 deletions.
9 changes: 2 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,20 +1,15 @@
*.egg-info/
*.pyc
/.mxmake/
/bin/
/build/
/bundle/
/constraints-mxdev.txt
/coverage/
/dist/
/docs/html/
/include/
/karma/
/lib/
/lib64
/node_modules/
/package-lock.json
/pyvenv.cfg
/requirements-mxdev.txt
/share/
/treibstoff-*.tgz
/treibstoff.egg-info/
/venv/
3 changes: 3 additions & 0 deletions CHANGES.rst
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ Changes
0.4.0 (unreleased)
------------------

- Use web test runner instead of deprecated karma.
[rnix]

- Deprecate usage of ``ts.ajax.request``. ``ts.http_request`` shall be used
instead.
[rnix]
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.rst
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
License
=======

Copyright (c) 2021-2023, Conestack Contributors
Copyright (c) 2021-2024, Conestack Contributors

Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
Expand Down
51 changes: 0 additions & 51 deletions karma.conf.js

This file was deleted.

10 changes: 4 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,14 @@
"main": "src/treibstoff.js",
"devDependencies": {
"@rollup/plugin-terser": "^0.4.4",
"@web/dev-server-import-maps": "^0.2.0",
"@web/test-runner": "^0.18.0",
"install": "^0.13.0",
"jquery": "github:jquery/jquery#2b6b5e0a3ba3029ec3ad1525a178920765e3adf1",
"jsdoc": "^3.6.11",
"karma": "^6.4.2",
"karma-chrome-launcher": "^3.2.0",
"karma-coverage": "^2.2.1",
"karma-module-resolver-preprocessor": "^1.1.3",
"karma-qunit": "^4.1.2",
"qunit": "^2.20.0",
"rollup-plugin-cleanup": "^3.2.1",
"rollup": "^2.79.1",
"rollup-plugin-cleanup": "^3.2.1"
"web-test-runner-qunit": "^1.0.0"
}
}
25 changes: 25 additions & 0 deletions web-test-runner-config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import {importMapsPlugin} from '@web/dev-server-import-maps';

export default {
nodeResolve: true,
testFramework: {
path: './node_modules/web-test-runner-qunit/dist/autorun.js',
config: {
noglobals: false
}
},
files: [
'tests/**/test_*.js'
],
plugins: [
importMapsPlugin({
inject: {
importMap: {
imports: {
'jquery': './node_modules/jquery/src/jquery.js'
},
},
},
}),
],
}

0 comments on commit 30c971d

Please sign in to comment.