Skip to content

Commit 4fcf1d9

Browse files
authoredMay 24, 2023
test(checkout): CHECKOUT-7283 Introduce React Testing Library (bigcommerce#1282)
* test(checkout): CHECKOUT-7283 Introduce React Testing Library * test(checkout): CHECKOUT-7283 Apply eslint plugin * test(checkout): CHECKOUT-7283 Update mocks * test(checkout): CHECKOUT-7283 Rename payment-integration-test-framework
1 parent 77c7ca1 commit 4fcf1d9

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+4246
-626
lines changed
 

‎.circleci/config.yml

+3-3
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
- run:
4141
name: "Run unit tests for core package"
4242
command: |
43-
TEST=$(circleci tests glob "packages/core/**/*.spec.ts" "packages/core/**/*.spec.tsx" | circleci tests split --split-by=timings)
43+
TEST=$(circleci tests glob "packages/core/**/*.spec.ts" "packages/core/**/*.spec.tsx" "packages/core/**/*.test.ts" "packages/core/**/*.test.tsx" | circleci tests split --split-by=timings)
4444
npx nx run core:generate
4545
npm run test:core $TEST -- --runInBand
4646
- run:
@@ -89,10 +89,10 @@ jobs:
8989
name: "Run e2e tests"
9090
command: npx playwright test
9191
- store_artifacts:
92-
path: packages/payment-integration-test-framework/report
92+
path: packages/test-framework/report
9393
destination: artifact-file
9494
- store_artifacts:
95-
path: packages/payment-integration-test-framework/screenshots
95+
path: packages/test-framework/screenshots
9696

9797
release:
9898
<<: *node_executor

‎.eslintrc.json

+7
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,13 @@
7070
"files": ["*.js", "*.jsx"],
7171
"extends": ["plugin:@nrwl/nx/javascript"],
7272
"rules": {}
73+
},
74+
{
75+
"files": ["*.test.ts", "*.test.tsx"],
76+
"extends": [
77+
"plugin:testing-library/react",
78+
"plugin:jest-dom/recommended"
79+
]
7380
}
7481
]
7582
}

0 commit comments

Comments
 (0)
Please sign in to comment.