27 lines
1.4 KiB
Plaintext
27 lines
1.4 KiB
Plaintext
|
|
> job-tracker-ui@0.1.0 test
|
|
> jest --runInBand --watch=false --runTestsByPath src/cv-builder-deep-link.test.tsx --testNamePattern=tablet width keeps both --json --outputFile=../docs/ui-modernisation/a3-cv-tablet-red.json
|
|
|
|
FAIL src/cv-builder-deep-link.test.tsx
|
|
● tablet width keeps both editing and preview available in the stacked document flow
|
|
|
|
Property `matchMedia` does not exist in the provided object
|
|
|
|
109 |
|
|
110 | test('tablet width keeps both editing and preview available in the stacked document flow', async () => {
|
|
> 111 | const media = jest.spyOn(window, 'matchMedia').mockImplementation(query => ({
|
|
| ^
|
|
112 | matches: /max-width:\s*([\d.]+)px/.test(query) && 768 <= Number(/max-width:\s*([\d.]+)px/.exec(query)![1]),
|
|
113 | media: query, onchange: null, addListener: jest.fn(), removeListener: jest.fn(), addEventListener: jest.fn(), removeEventListener: jest.fn(), dispatchEvent: () => true,
|
|
114 | }));
|
|
|
|
at ModuleMocker.spyOn (node_modules/jest-mock/build/index.js:593:13)
|
|
at Object.spyOn (src/cv-builder-deep-link.test.tsx:111:22)
|
|
|
|
Test Suites: 1 failed, 1 total
|
|
Tests: 1 failed, 57 skipped, 58 total
|
|
Snapshots: 0 total
|
|
Time: 5.869 s, estimated 150 s
|
|
Ran all test suites within paths "src/cv-builder-deep-link.test.tsx".
|
|
Test results written to: ..\docs\ui-modernisation\a3-cv-tablet-red.json
|