1 | /**
|
2 | * A mock of the Constants module with extra fields specified to simulate a project in development.
|
3 | * Use it by importing and returning it from a `jest.mock` call explicitly.
|
4 | */
|
5 |
|
6 | const Constants = require.requireActual('../Constants').default;
|
7 |
|
8 | const MockConstants = Object.create(Constants);
|
9 | MockConstants.manifest = {
|
10 | ...Constants.manifest,
|
11 | developer: {
|
12 | projectRoot: '/home/test/project',
|
13 | },
|
14 | logUrl: 'https://localhost:19001/logs',
|
15 | };
|
16 |
|
17 | module.exports = MockConstants;
|