Skip to content

Commit

Permalink
get rid of jest.setup.js
Browse files Browse the repository at this point in the history
  • Loading branch information
charlielye committed Mar 30, 2024
1 parent 99aeb5f commit 6acb77b
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 7 deletions.
5 changes: 1 addition & 4 deletions yarn-project/foundation/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,7 @@
"^(\\.{1,2}/.*)\\.[cm]?js$": "$1"
},
"testRegex": "./src/.*\\.test\\.(js|mjs|ts)$",
"rootDir": "./src",
"setupFilesAfterEnv": [
"./jest.setup.js"
]
"rootDir": "./src"
},
"dependencies": {
"@aztec/bb.js": "portal:../../barretenberg/ts",
Expand Down
3 changes: 0 additions & 3 deletions yarn-project/foundation/src/jest.setup.js

This file was deleted.

2 changes: 2 additions & 0 deletions yarn-project/foundation/src/log/log_history.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { afterAll, beforeAll, beforeEach, describe, expect, it, jest } from '@jest/globals';

import { createDebugOnlyLogger, enableLogs } from './debug.js';
import { LogHistory } from './log_history.js';

Expand Down
2 changes: 2 additions & 0 deletions yarn-project/foundation/src/mutex/mutex.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { beforeEach, describe, expect, it, jest } from '@jest/globals';

import { Mutex } from './index.js';
import { type MutexDatabase } from './mutex_database.js';

Expand Down
2 changes: 2 additions & 0 deletions yarn-project/foundation/src/serialize/buffer_reader.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { beforeEach, describe, expect, it, jest } from '@jest/globals';

import { randomBytes } from '../crypto/index.js';
import { Fq, Fr } from '../fields/fields.js';
import { BufferReader } from './buffer_reader.js';
Expand Down
2 changes: 2 additions & 0 deletions yarn-project/foundation/src/sleep/sleep.test.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import { describe, expect, it, jest } from '@jest/globals';

import { InterruptError } from '../errors/index.js';
import { InterruptibleSleep } from './index.js';

Expand Down

0 comments on commit 6acb77b

Please sign in to comment.