Skip to content

Commit

Permalink
build: 🔧 set env for jest
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinxin90 committed Apr 22, 2021
1 parent 8686092 commit d26e13e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions .jest/setEnvVars.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
process.env.MAX_QUERIES_PER_MIN = 20;
3 changes: 2 additions & 1 deletion jest.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
module.exports = {
// setupTestFrameworkScriptFile has been deprecated in
// favor of setupFilesAfterEnv in jest 24
setupFilesAfterEnv: ['./jest.setup.js']
setupFilesAfterEnv: ['./jest.setup.js'],
setupFiles: ["<rootDir>/.jest/setEnvVars.js"]
}

0 comments on commit d26e13e

Please sign in to comment.