mirror of
https://github.com/elastic/kibana.git
synced 2025-04-24 01:38:56 -04:00
parent
a9449a4d9a
commit
3a23648223
1 changed files with 12 additions and 0 deletions
|
@ -7,6 +7,18 @@
|
|||
import { reporting } from './index';
|
||||
import { getConfigSchema } from '../../test_utils';
|
||||
|
||||
// The snapshot records the number of cpus available
|
||||
// to make the snapshot deterministic `os.cpus` needs to be mocked
|
||||
// but the other members on `os` must remain untouched
|
||||
jest.mock(
|
||||
'os',
|
||||
() => {
|
||||
const os = jest.requireActual('os');
|
||||
os.cpus = () => [{}, {}, {}, {}];
|
||||
return os;
|
||||
}
|
||||
);
|
||||
|
||||
const describeWithContext = describe.each([
|
||||
[{ dev: false, dist: false }],
|
||||
[{ dev: true, dist: false }],
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue