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

chore: use @reporters/github test reporter for unit & e2e tests #42

Merged
merged 2 commits into from
Oct 2, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
4 changes: 2 additions & 2 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ jobs:
run: npm install

- name: Run Tests
run: npm run test:unit
run: node --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout --loader=tsx ./tests/e2e/index.test.ts
MoLow marked this conversation as resolved.
Show resolved Hide resolved
flakey5 marked this conversation as resolved.
Show resolved Hide resolved
e2e-test:
name: E2E Tests
runs-on: ubuntu-latest
Expand All @@ -49,4 +49,4 @@ jobs:
run: npm install

- name: Run Tests
run: npm run test:e2e
run: node --test --test-reporter=@reporters/github --test-reporter-destination=stdout --test-reporter=spec --test-reporter-destination=stdout --loader=tsx ./tests/unit/index.test.ts
flakey5 marked this conversation as resolved.
Show resolved Hide resolved
60 changes: 60 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,13 +8,14 @@
"format": "prettier --check --write \"**/*.{ts,js,json,md,hbs}\"",
"prettier": "prettier --check \"**/*.{ts,js,json,md,hbs}\"",
"lint": "eslint ./src",
"test:unit": "node --test --test-reporter spec --loader tsx ./tests/unit/util.test.ts",
"test:e2e": "wrangler deploy --dry-run --outdir=dist && node --test --test-reporter spec --loader tsx ./tests/e2e/index.test.ts",
"test:unit": "node --test --test-reporter=spec --loader=tsx ./tests/unit/index.test.ts",
"test:e2e": "wrangler deploy --dry-run --outdir=dist && node --test --test-reporter=spec --loader=tsx ./tests/e2e/index.test.ts",
flakey5 marked this conversation as resolved.
Show resolved Hide resolved
"build:handlebars": "node scripts/compile-handlebars.js"
},
"devDependencies": {
"@aws-sdk/client-s3": "^3.421.0",
"@cloudflare/workers-types": "^4.20230922.0",
"@reporters/github": "^1.5.3",
"@types/node": "^20.7.0",
"@typescript-eslint/eslint-plugin": "^6.7.3",
"@typescript-eslint/parser": "^6.7.3",
Expand Down
Loading