Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

refactor: use Jest projects config for unit and e2e tests #2656

Merged
merged 1 commit into from
Aug 1, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/code_standard_check.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 Down
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
@@ -1,7 +1,7 @@
# This is a workflow to create github release for a tag and publish the package
# to npm repo

name: release-and-publish
name: Release and publish

# Controls when the action will run. Triggers the workflow on push of tag
# request events but only tags matching the configured regex
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