[go: nahoru, domu]

Skip to content

Commit

Permalink
Merge pull request gdg-x#2793 from gdg-x/dependabot/npm_and_yarn/jest…
Browse files Browse the repository at this point in the history
…-dev-server-9.0.0

Bump jest-dev-server from 7.0.1 to 9.0.0
  • Loading branch information
abraham committed Sep 4, 2023
2 parents 92d833f + c84dc1a commit 9dfd528
Show file tree
Hide file tree
Showing 3 changed files with 44 additions and 24 deletions.
6 changes: 4 additions & 2 deletions __tests__/firestore.setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,13 @@ import {
import { afterAll, beforeAll } from '@jest/globals';
import { doc, setDoc } from 'firebase/firestore';
import { setup, teardown } from 'jest-dev-server';
import { SpawndChildProcess } from 'spawnd';

let testEnv: RulesTestEnvironment;
let servers: SpawndChildProcess[] = [];

beforeAll(async () => {
await setup({
servers = await setup({
command: 'npx firebase emulators:start --only firestore',
launchTimeout: 30000,
port: 8080,
Expand All @@ -22,7 +24,7 @@ beforeAll(async () => {
}, 30000);

afterAll(async () => {
await teardown();
await teardown(servers);
});

interface SetupApp {
Expand Down
60 changes: 39 additions & 21 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@
"firebase-admin": "^11.9.0",
"firebase-tools": "^12.5.2",
"jest": "^29.5.0",
"jest-dev-server": "^7.0.1",
"jest-dev-server": "^9.0.0",
"jest-environment-jsdom": "^29.5.0",
"markdownlint": "^0.30.0",
"markdownlint-cli": "^0.35.0",
Expand Down

0 comments on commit 9dfd528

Please sign in to comment.