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 79b8751 commit 8d0200e
Show file tree
Hide file tree
Showing 159 changed files with 1,515 additions and 6,905 deletions.
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
File renamed without changes.
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 8d0200e

Please sign in to comment.