Skip to content

Commit

Permalink
test: increase hooks timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
pr-Mais committed Jul 3, 2024
1 parent 0bc1386 commit 24d7b8c
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
19 changes: 10 additions & 9 deletions firestore-stripe-web-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,32 +36,33 @@
"@types/chai": "^4.2.21",
"@types/chai-as-promised": "^7.1.4",
"@types/chai-like": "^1.1.1",
"@types/mocha": "^9.0.0",
"@types/mocha": "^9.1.1",
"@types/sinon": "10.0.6",
"@types/sinon-chai": "^3.2.5",
"chai": "^4.3.4",
"chai-as-promised": "^7.1.1",
"chai-like": "^1.1.1",
"firebase-tools": "^9.18.0",
"mocha": "^9.1.1",
"karma": "^6.3.4",
"karma-chrome-launcher": "^3.1.0",
"karma-mocha": "^2.0.1",
"karma-mocha-reporter": "^2.2.5",
"karma-webpack": "^4.0.2",
"karma-sourcemap-loader": "^0.3.8",
"karma-chrome-launcher": "^3.1.0",
"webpack": "^4.46.0",
"source-map-loader": "^1.1.3",
"karma-webpack": "^4.0.2",
"mocha": "^9.1.1",
"replace-in-file": "^6.2.0",
"sinon": "^11.1.2",
"sinon-chai": "^3.7.0",
"ts-node": "^10.2.1",
"source-map-loader": "^1.1.3",
"ts-loader": "^8.3.0",
"typescript": "^4.4.2"
"ts-node": "^10.2.1",
"typescript": "^4.4.2",
"webpack": "^4.46.0"
},
"dependencies": {
"@firebase/app": "^0.9.17",
"@firebase/auth": "^1.3.0",
"@firebase/firestore": "^4.1.2"
"@firebase/firestore": "^4.1.2",
"@types/node": "^20.14.9"
}
}
12 changes: 9 additions & 3 deletions firestore-stripe-web-sdk/test/emulator.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,17 +105,23 @@ describe("Emulator tests", () => {
const db: Firestore = getFirestore(app);
const auth: Auth = getAuth(app);

before(async () => {
before(async function () {
this.timeout(80000);
connectFirestoreEmulator(db, "localhost", 8080);
connectAuthEmulator(auth, "http://localhost:9099", {
disableWarnings: true,
});
for (const [productId, data] of Object.entries(rawProductData)) {
await addProductData(productId, data);
try {
await addProductData(productId, data);
} catch (err) {
console.error(err);
}
}
});

after(async () => {
after(async function () {
this.timeout(80000);
await deleteApp(app);
});

Expand Down
3 changes: 2 additions & 1 deletion firestore-stripe-web-sdk/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@
"forceConsistentCasingInFileNames": true,
"stripInternal": true
},
"include": ["src/*.ts"],

"include": ["src/*.ts", "test/*.ts"],
"exclude": ["node_modules"]
}

0 comments on commit 24d7b8c

Please sign in to comment.