diff --git a/src/__tests__/get-user-code-frame.js b/src/__tests__/get-user-code-frame.js index 8d2bd058..6befcc78 100644 --- a/src/__tests__/get-user-code-frame.js +++ b/src/__tests__/get-user-code-frame.js @@ -39,13 +39,13 @@ test('it returns only user code frame when code frames from node_modules are fir const userTrace = getUserCodeFrame(stack) expect(userTrace).toMatchInlineSnapshot(` - /sample-error/error-example.js:7:14 - 5 | document.createTextNode('Hello world') - 6 | ) - > 7 | screen.debug() - | ^ - - `) +"/sample-error/error-example.js:7:14 + 5 | document.createTextNode('Hello world') + 6 | ) +> 7 | screen.debug() + | ^ +" +`) }) test('it returns only user code frame when node code frames are present afterwards', () => { @@ -59,13 +59,13 @@ test('it returns only user code frame when node code frames are present afterwar const userTrace = getUserCodeFrame() expect(userTrace).toMatchInlineSnapshot(` - /sample-error/error-example.js:7:14 - 5 | document.createTextNode('Hello world') - 6 | ) - > 7 | screen.debug() - | ^ - - `) +"/sample-error/error-example.js:7:14 + 5 | document.createTextNode('Hello world') + 6 | ) +> 7 | screen.debug() + | ^ +" +`) }) test("it returns empty string if file from code frame can't be read", () => { diff --git a/src/__tests__/role.js b/src/__tests__/role.js index c7dc70c5..a63043e3 100644 --- a/src/__tests__/role.js +++ b/src/__tests__/role.js @@ -5,100 +5,100 @@ import {render, renderIntoDocument} from './helpers/test-utils' test('by default logs accessible roles when it fails', () => { const {getByRole} = render(`

Hi

`) expect(() => getByRole('article')).toThrowErrorMatchingInlineSnapshot(` -"Unable to find an accessible element with the role "article" + "Unable to find an accessible element with the role "article" -Here are the accessible roles: + Here are the accessible roles: - heading: + heading: - Name "Hi": -

+ Name "Hi": +

- -------------------------------------------------- + -------------------------------------------------- -Ignored nodes: comments,