Skip to content

Commit

Permalink
refactor: use Jest projects config for unit and e2e tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ahnpnl committed Aug 1, 2024
1 parent ec8ef3e commit ae3c6f5
Show file tree
Hide file tree
Showing 159 changed files with 1,515 additions and 6,905 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
examples/example-app-monorepo/node_modules
examples/example-app-v15/node_modules
examples/example-app-v17/node_modules
examples/example-app-v18/node_modules
examples/example-app-yarn-workspace/node_modules
key: ${{ inputs.os }}-${{ inputs.node }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
Expand Down
File renamed without changes.
2 changes: 2 additions & 0 deletions .github/workflows/install.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ jobs:
examples/example-app-monorepo/node_modules
examples/example-app-v15/node_modules
examples/example-app-v17/node_modules
examples/example-app-v18/node_modules
examples/example-app-yarn-workspace/node_modules
key: ${{ inputs.os }}-${{ inputs.node }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
Expand All @@ -53,4 +54,5 @@ jobs:
yarn --cwd examples/example-app-monorepo
yarn --cwd examples/example-app-v15
yarn --cwd examples/example-app-v17
yarn --cwd examples/example-app-v18
yarn --cwd examples/example-app-yarn-workspace
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ jobs:

code_standard_check:
needs: prepare_cache_ubuntu
uses: ./.github/workflows/code_standard_check.yml
uses: ./.github/workflows/code-standard-check.yml
with:
os: ubuntu-latest
node: 20.x
Expand Down
6 changes: 5 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
examples/example-app-monorepo/node_modules
examples/example-app-v15/node_modules
examples/example-app-v17/node_modules
examples/example-app-v18/node_modules
examples/example-app-yarn-workspace/node_modules
key: ${{ inputs.os }}-${{ inputs.node }}-build-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
Expand All @@ -44,8 +45,11 @@ jobs:
with:
node-version: ${{ inputs.node }}

- name: Run tests 🧪
- name: Run tests in CommonJS mode 🧪
run: yarn test

- name: Run tests in ESM mode 🧪
run: yarn test-esm

- name: Run tests in example projects 🧪
run: yarn test-examples
23 changes: 0 additions & 23 deletions e2e/__tests__/ast-transformers.test.ts

This file was deleted.

22 changes: 0 additions & 22 deletions e2e/__tests__/async.test.ts

This file was deleted.

22 changes: 0 additions & 22 deletions e2e/__tests__/babel-support.test.ts

This file was deleted.

22 changes: 0 additions & 22 deletions e2e/__tests__/custom-typings.test.ts

This file was deleted.

15 changes: 0 additions & 15 deletions e2e/__tests__/full-ivy-lib.test.ts

This file was deleted.

22 changes: 0 additions & 22 deletions e2e/__tests__/jest-globals.test.ts

This file was deleted.

15 changes: 0 additions & 15 deletions e2e/__tests__/ng-deep-import.test.ts

This file was deleted.

15 changes: 0 additions & 15 deletions e2e/__tests__/partial-ivy-lib.test.ts

This file was deleted.

15 changes: 0 additions & 15 deletions e2e/__tests__/path-mapping.test.ts

This file was deleted.

16 changes: 0 additions & 16 deletions e2e/__tests__/process-js-packages.test.ts

This file was deleted.

15 changes: 0 additions & 15 deletions e2e/__tests__/snapshot-serializers.test.ts

This file was deleted.

14 changes: 0 additions & 14 deletions e2e/ast-transformers/hoisting/jest-isolated.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions e2e/ast-transformers/hoisting/jest.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions e2e/ast-transformers/hoisting/package.json

This file was deleted.

This file was deleted.

15 changes: 0 additions & 15 deletions e2e/ast-transformers/ng-jit-transformers/jest-isolated.config.js

This file was deleted.

9 changes: 0 additions & 9 deletions e2e/ast-transformers/ng-jit-transformers/jest.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions e2e/ast-transformers/ng-jit-transformers/package.json

This file was deleted.

3 changes: 0 additions & 3 deletions e2e/ast-transformers/ng-jit-transformers/ts-jest.config.js

This file was deleted.

Loading

0 comments on commit ae3c6f5

Please sign in to comment.