Download next.js/test/jest-setup-after-env.ts from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 579 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/jest-setup-after-env.ts
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset/next.js/test/jest-setup-after-env.ts
-
curl -L -o jest-setup-after-env.ts https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/main/next.js/test/jest-setup-after-env.ts
579 Bytes
| import * as matchers from 'jest-extended' | |
| expect.extend(matchers) | |
| // A default max-timeout of 90 seconds is allowed | |
| // per test we should aim to bring this down though | |
| jest.setTimeout((process.platform === 'win32' ? 180 : 60) * 1000) | |
| // Polyfill for `using` https://www.typescriptlang.org/docs/handbook/release-notes/typescript-5-2.html | |
| if (!Symbol.dispose) { | |
| Object.defineProperty(Symbol, 'dispose', { | |
| value: Symbol('Symbol.dispose'), | |
| }) | |
| } | |
| if (!Symbol.asyncDispose) { | |
| Object.defineProperty(Symbol, 'asyncDispose', { | |
| value: Symbol('Symbol.asyncDispose'), | |
| }) | |
| } | |