Download spectrum/shared/testing/setup-test-framework.js from Devendra174/react-code-dataset: direct link, hf CLI and curl.
- Browser
- Download file 231 Bytes
-
https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/shared/testing/setup-test-framework.js
- Command line
-
hf download hf://datasets/Devendra174/react-code-dataset@1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/shared/testing/setup-test-framework.js
-
curl -L -o setup-test-framework.js https://huggingface.co/datasets/Devendra174/react-code-dataset/resolve/1e92f2d0b9e054abc23a53595fd89ad3e2b4a34e/spectrum/shared/testing/setup-test-framework.js
231 Bytes
| const mockDb = require('./db'); | |
| // Wait for 15s before timing out, this is useful for e2e tests which have a tendency to time out | |
| jest.setTimeout(30000); | |
| // Mock the database | |
| jest.mock('shared/db/db', () => ({ | |
| db: mockDb, | |
| })); | |