Skip to content

Commit

Permalink
test(ui-codemods): migrate old Codemods tests and implement pirates h…
Browse files Browse the repository at this point in the history
…ook to transform ts files to js

Closes: INSTUI-4126

Pirates hook transform is a necessary workaround because vitest does not support importing ts files
with `require`.
  • Loading branch information
git-nandor committed Aug 14, 2024
1 parent 7dc5b30 commit 054d761
Show file tree
Hide file tree
Showing 13 changed files with 481 additions and 44 deletions.
2 changes: 0 additions & 2 deletions .github/workflows/pr-validation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,5 +65,3 @@ jobs:
run: npm run bootstrap
- name: Run legacy unit tests
run: npm run test
- name: Run legacy jest tests
run: npm run test:jest
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
- name: Set up project.
run: npm run bootstrap
- name: Run tests.
run: USE_REACT_STRICT_MODE=0 npm run test && npm run test:vitest && npm run test:jest && npm run cy:component
run: USE_REACT_STRICT_MODE=0 npm run test && npm run test:vitest && npm run cy:component
- name: Release to NPM
env:
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
Expand Down
Loading

0 comments on commit 054d761

Please sign in to comment.