Skip to content

Commit

Permalink
cleanup tests
Browse files Browse the repository at this point in the history
  • Loading branch information
codyzu committed Feb 11, 2024
1 parent 088981f commit f141f7b
Show file tree
Hide file tree
Showing 4 changed files with 1 addition and 17 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"test:all": "pnpm run test:once && pnpm run test:e2e",
"test:once": "pnpm run test --run",
"test:ui": "pnpm run test --ui",
"coverage": "pnpm run emulators:exec 'pnpm run test:start --run --coverage'",
"coverage": "pnpm run test:once --coverage",
"emulators": "firebase emulators:start --project demo-test --only auth,firestore,storage",
"emulators:exec": "firebase emulators:exec --project demo-test --only auth,firestore,storage",
"coverage:report": "nyc report --temp-dir ./coverage/tmp --reporter=text --reporter=lcov --reporter=text-summary --exclude-after-remap false",
Expand Down Expand Up @@ -67,7 +67,6 @@
"@unocss/preset-web-fonts": "^0.53.3",
"@unocss/transformer-directives": "^0.53.3",
"@unocss/transformer-variant-group": "^0.53.3",
"@vite-pwa/assets-generator": "^0.0.3",
"@vitejs/plugin-react": "^4.0.3",
"@vitest/coverage-v8": "^0.33.0",
"@vitest/ui": "^0.33.0",
Expand Down
5 changes: 0 additions & 5 deletions src/pages/presentation.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import {test, expect} from '../test/login-fixture';
let presentationId: string;

test.beforeAll(async () => {
await fetch(
'http://127.0.0.1:8081/emulator/v1/projects/demo-test/databases/(default)/documents/presentations/viewer-1',
{method: 'DELETE'},
);

const presentationsQuerySnapshot = await dbAdmin
.collection('presentations')
.where('title', '==', 'A Presentation for Testing')
Expand Down
5 changes: 0 additions & 5 deletions src/pages/speaker.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import {test, expect} from '../test/login-fixture';
let presentationId: string;

test.beforeAll(async () => {
await fetch(
'http://127.0.0.1:8081/emulator/v1/projects/demo-test/databases/(default)/documents/presentations/viewer-1',
{method: 'DELETE'},
);

const presentationsQuerySnapshot = await dbAdmin
.collection('presentations')
.where('title', '==', 'A Presentation for Testing')
Expand Down
5 changes: 0 additions & 5 deletions src/pages/viewer.e2e.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,6 @@ import {test, expect} from '../test/login-fixture';
let presentationId: string;

test.beforeAll(async () => {
await fetch(
'http://127.0.0.1:8081/emulator/v1/projects/demo-test/databases/(default)/documents/presentations/viewer-1',
{method: 'DELETE'},
);

const presentationsQuerySnapshot = await dbAdmin
.collection('presentations')
.where('title', '==', 'A Presentation for Testing')
Expand Down

0 comments on commit f141f7b

Please sign in to comment.