Change test script to be "test" instead "test:ci" so all tests are executed properly (#437)
This commit is contained in:
parent
b4ddb02efb
commit
842b7b9cdb
4 changed files with 3 additions and 6 deletions
2
.github/workflows/unit-tests.yml
vendored
2
.github/workflows/unit-tests.yml
vendored
|
@ -19,7 +19,7 @@ jobs:
|
||||||
- name: Generate schema
|
- name: Generate schema
|
||||||
run: pnpm generate
|
run: pnpm generate
|
||||||
- name: Test
|
- name: Test
|
||||||
run: pnpm test:ci
|
run: pnpm test
|
||||||
# TODO: Add coverage - crawl through every package
|
# TODO: Add coverage - crawl through every package
|
||||||
# - name: Generate coverage report
|
# - name: Generate coverage report
|
||||||
# uses: irongut/CodeCoverageSummary@v1.3.0
|
# uses: irongut/CodeCoverageSummary@v1.3.0
|
||||||
|
|
|
@ -10,8 +10,7 @@
|
||||||
"lint:fix": "eslint --fix .",
|
"lint:fix": "eslint --fix .",
|
||||||
"fetch-schema": "curl https://raw.githubusercontent.com/saleor/saleor/${npm_package_saleor_schemaVersion}/saleor/graphql/schema.graphql > graphql/schema.graphql",
|
"fetch-schema": "curl https://raw.githubusercontent.com/saleor/saleor/${npm_package_saleor_schemaVersion}/saleor/graphql/schema.graphql > graphql/schema.graphql",
|
||||||
"generate": "graphql-codegen",
|
"generate": "graphql-codegen",
|
||||||
"test": "vitest",
|
"test": "vitest"
|
||||||
"test:ci": "CI=true vitest --coverage"
|
|
||||||
},
|
},
|
||||||
"saleor": {
|
"saleor": {
|
||||||
"schemaVersion": "3.10"
|
"schemaVersion": "3.10"
|
||||||
|
|
|
@ -10,8 +10,7 @@
|
||||||
"lint:fix": "eslint --fix .",
|
"lint:fix": "eslint --fix .",
|
||||||
"fetch-schema": "curl https://raw.githubusercontent.com/saleor/saleor/${npm_package_saleor_schemaVersion}/saleor/graphql/schema.graphql > graphql/schema.graphql",
|
"fetch-schema": "curl https://raw.githubusercontent.com/saleor/saleor/${npm_package_saleor_schemaVersion}/saleor/graphql/schema.graphql > graphql/schema.graphql",
|
||||||
"generate": "graphql-codegen",
|
"generate": "graphql-codegen",
|
||||||
"test": "vitest",
|
"test": "vitest"
|
||||||
"test:ci": "CI=true vitest --coverage"
|
|
||||||
},
|
},
|
||||||
"saleor": {
|
"saleor": {
|
||||||
"schemaVersion": "3.10"
|
"schemaVersion": "3.10"
|
||||||
|
|
|
@ -13,7 +13,6 @@
|
||||||
"lint": "turbo run lint",
|
"lint": "turbo run lint",
|
||||||
"start": "turbo run start",
|
"start": "turbo run start",
|
||||||
"test": "turbo run test",
|
"test": "turbo run test",
|
||||||
"test:ci": "turbo run test:ci",
|
|
||||||
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
"format": "prettier --write \"**/*.{ts,tsx,md}\"",
|
||||||
"generate": "turbo run generate",
|
"generate": "turbo run generate",
|
||||||
"prepare": "husky install"
|
"prepare": "husky install"
|
||||||
|
|
Loading…
Reference in a new issue