From 41d105d01b7a2da93fb276397ff9b043df89ba8f Mon Sep 17 00:00:00 2001 From: Jon Surrell Date: Tue, 10 Sep 2024 20:21:25 +0200 Subject: [PATCH] Fix a11y tests for restructred package --- packages/a11y/src/{ => shared}/test/add-container.test.js | 0 packages/a11y/src/{ => shared}/test/clear.test.js | 0 .../a11y/src/{ => shared}/test/filter-message.test.js | 0 packages/a11y/src/test/index.test.js | 8 ++++---- 4 files changed, 4 insertions(+), 4 deletions(-) rename packages/a11y/src/{ => shared}/test/add-container.test.js (100%) rename packages/a11y/src/{ => shared}/test/clear.test.js (100%) rename packages/a11y/src/{ => shared}/test/filter-message.test.js (100%) diff --git a/packages/a11y/src/test/add-container.test.js b/packages/a11y/src/shared/test/add-container.test.js similarity index 100% rename from packages/a11y/src/test/add-container.test.js rename to packages/a11y/src/shared/test/add-container.test.js diff --git a/packages/a11y/src/test/clear.test.js b/packages/a11y/src/shared/test/clear.test.js similarity index 100% rename from packages/a11y/src/test/clear.test.js rename to packages/a11y/src/shared/test/clear.test.js diff --git a/packages/a11y/src/test/filter-message.test.js b/packages/a11y/src/shared/test/filter-message.test.js similarity index 100% rename from packages/a11y/src/test/filter-message.test.js rename to packages/a11y/src/shared/test/filter-message.test.js diff --git a/packages/a11y/src/test/index.test.js b/packages/a11y/src/test/index.test.js index 4815baa220504..0f6b9d0bd572e 100644 --- a/packages/a11y/src/test/index.test.js +++ b/packages/a11y/src/test/index.test.js @@ -7,10 +7,10 @@ import domReady from '@wordpress/dom-ready'; * Internal dependencies */ import { setup, speak } from '../'; -import clear from '../clear'; -import filterMessage from '../filter-message'; +import clear from '../shared/clear'; +import filterMessage from '../shared/filter-message'; -jest.mock( '../clear', () => { +jest.mock( '../shared/clear', () => { return jest.fn(); } ); jest.mock( '@wordpress/dom-ready', () => { @@ -18,7 +18,7 @@ jest.mock( '@wordpress/dom-ready', () => { callback(); } ); } ); -jest.mock( '../filter-message', () => { +jest.mock( '../shared/filter-message', () => { return jest.fn( ( message ) => { return message; } );