diff --git a/src/__node_tests__/screen.js b/src/__node_tests__/screen.js index 896393d0..2c3b69aa 100644 --- a/src/__node_tests__/screen.js +++ b/src/__node_tests__/screen.js @@ -4,6 +4,6 @@ test('the screen export throws a helpful error message when no global document i expect(() => screen.getByText(/hello world/i), ).toThrowErrorMatchingInlineSnapshot( - `"For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error"`, + `"For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/docs/dom-testing-library/api-queries#screen"`, ) }) diff --git a/src/screen.js b/src/screen.js index f6768c6b..55a2a087 100644 --- a/src/screen.js +++ b/src/screen.js @@ -14,7 +14,7 @@ export const screen = (helpers, key) => { helpers[key] = () => { throw new TypeError( - 'For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/s/screen-global-error', + 'For queries bound to document.body a global document has to be available... Learn more: https://testing-library.com/docs/dom-testing-library/api-queries#screen', ) } return helpers