Skip to content

Commit

Permalink
test: introducing jest tests, running prettier on tests directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Varun0157 committed Jun 18, 2024
1 parent b75b887 commit df882ea
Show file tree
Hide file tree
Showing 12 changed files with 3,728 additions and 255 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/formatting.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,4 +11,4 @@ jobs:
with:
node-version: "20"
- name: prettier check
run: npx prettier -c ./src --config ./src/.prettierrc
run: npx prettier -c ./src ./tests --config ./src/.prettierrc
16 changes: 0 additions & 16 deletions .github/workflows/test bundles/check_failing_reqs.sh

This file was deleted.

8 changes: 0 additions & 8 deletions .github/workflows/test bundles/test_bundle.sh

This file was deleted.

7 changes: 2 additions & 5 deletions .github/workflows/test_bundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,12 +14,9 @@ jobs:
run: |
npm i
npm run build
- name: run full bundle check
- name: run bundle check and assert failing requests
run: |
bash ./.github/workflows/test\ bundles/test_bundle.sh
- name: assert failing requests
run: |
bash ./.github/workflows/test\ bundles/check_failing_reqs.sh
npm run test
- name: checking for multiple bundles in a single command
run: |
bash ./.github/workflows/test\ bundles/multiple_bundles.sh
File renamed without changes.
7 changes: 7 additions & 0 deletions jest.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
/** @type {import('ts-jest').JestConfigWithTsJest} */
module.exports = {
preset: 'ts-jest',
testEnvironment: 'node',
silent: true,
testTimeout: 60*1000,
};
Loading

0 comments on commit df882ea

Please sign in to comment.