process-analytics / bpmn-visualization-addons

Add-ons for `bpmn-visualization`.
https://process-analytics.github.io/bpmn-visualization-addons/
Apache License 2.0
3 stars 0 forks source link

chore(test): switch from ts-jest to @swc/jest #302

Closed tbouffard closed 2 weeks ago

tbouffard commented 2 weeks ago

This makes the whole test run faster because swc uses native binaries to transpile the TypeScript code. This is particularly noticeable when you run a single test in your IDE.

The gain (i.e. the difference between execution with swc and with ts-jest) will increase as there are more TypeScript files to transpile (both in the tests and in the library).

Unlike ts-jest, swc does no type checking (it just transpiles). A new npm script is available to type-check the test code.

github-actions[bot] commented 2 weeks ago

🎊 PR Preview 08cb98db957b1801b67c07f496d039407784bef7 has been successfully built and deployed to https://process-analytics-bv-experimental-add-ons-demo-pr-302.surge.sh

🕐 Build time: 0.011s

🤖 By surge-preview

sonarcloud[bot] commented 2 weeks ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
0.0% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud