Skip to content

chore: add infrastructure to write JavaScript tests with jest#100

Merged
tbouffard merged 4 commits intomainfrom
test/introduce_jest_js_tests
Aug 31, 2023
Merged

chore: add infrastructure to write JavaScript tests with jest#100
tbouffard merged 4 commits intomainfrom
test/introduce_jest_js_tests

Conversation

@tbouffard
Copy link
Member

@tbouffard tbouffard commented Aug 31, 2023

Jest is configured to run ESM tests.
This requires to patch bpmn-visualization as its package.json lacks of ESM support in the latest available version. It will support it out of the box in a future version (at which point we can remove the patch from the project).

Writing tests in TypeScript will be possible at a later date.

Notes

Covers #65
Based on work done in #95

Jest is configured to run ESM tests.
This requires to patch bpmn-visualization as its package.json lacks of ESM support in the latest
available version. It will support it out of the box in a future version (at which point we can
remove the patch from the project).

Writing tests in TypeScript will be possible at a later date.
@tbouffard tbouffard added the chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...) label Aug 31, 2023
@github-actions
Copy link

github-actions bot commented Aug 31, 2023

♻️ PR Preview 014db18 has been successfully destroyed since this PR has been closed.

🤖 By surge-preview

@tbouffard tbouffard marked this pull request as ready for review August 31, 2023 04:48
@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@tbouffard tbouffard merged commit ede55c7 into main Aug 31, 2023
@tbouffard tbouffard deleted the test/introduce_jest_js_tests branch August 31, 2023 04:55
tbouffard added a commit that referenced this pull request Sep 4, 2023
Versions of `bpmn-visualization` prior to 0.39.0 did not support ESM in
Node.js projects. They required the package.json file of
`bpmn-visualization` to be patched in order to run tests.
`[email protected]` fixes this problem, so the patch can be
removed.

closes #97
relates to #100
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

chore Build, CI/CD or repository tasks (issues/PR maintenance, environments, ...)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant