From ac8c98c2d3fdd7f60ecc7eeabd0d03117ed19b1c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bel=C3=A9n=20Albeza?= Date: Mon, 21 Oct 2019 10:50:28 +0000 Subject: [PATCH] Bug 1579795 - Part 2: Reorganize jest tests folder structure r=jdescottes Differential Revision: https://phabricator.services.mozilla.com/D49595 --HG-- rename : devtools/client/application/test/components/.eslintrc.js => devtools/client/application/test/node/.eslintrc.js rename : devtools/client/application/test/components/babel.config.js => devtools/client/application/test/node/babel.config.js rename : devtools/client/application/test/components/__snapshots__/components_application_panel-App.test.js.snap => devtools/client/application/test/node/components/__snapshots__/components_application_panel-App.test.js.snap rename : devtools/client/application/test/components/components_application_panel-App.test.js => devtools/client/application/test/node/components/components_application_panel-App.test.js rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-Manifest.test.js.snap => devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-Manifest.test.js.snap rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestColorItem.test.js.snap => devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestColorItem.test.js.snap rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestEmpty.test.js.snap => devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestEmpty.test.js.snap rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestIconItem.test.js.snap => devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestIconItem.test.js.snap rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestIssue.test.js.snap => devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestIssue.test.js.snap rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestIssueList.test.js.snap => devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestIssueList.test.js.snap rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestItem.test.js.snap => devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestItem.test.js.snap rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestJsonLink.test.js.snap => devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestJsonLink.test.js.snap rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestLoader.test.js.snap => devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestLoader.test.js.snap rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestPage.test.js.snap => devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestPage.test.js.snap rename : devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestSection.test.js.snap => devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestSection.test.js.snap rename : devtools/client/application/test/components/manifest/components_application_panel-Manifest.test.js => devtools/client/application/test/node/components/manifest/components_application_panel-Manifest.test.js rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestColorItem.test.js => devtools/client/application/test/node/components/manifest/components_application_panel-ManifestColorItem.test.js rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestEmpty.test.js => devtools/client/application/test/node/components/manifest/components_application_panel-ManifestEmpty.test.js rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestIconItem.test.js => devtools/client/application/test/node/components/manifest/components_application_panel-ManifestIconItem.test.js rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestIssue.test.js => devtools/client/application/test/node/components/manifest/components_application_panel-ManifestIssue.test.js rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestIssueList.test.js => devtools/client/application/test/node/components/manifest/components_application_panel-ManifestIssueList.test.js rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestItem.test.js => devtools/client/application/test/node/components/manifest/components_application_panel-ManifestItem.test.js rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestJsonLink.test.js => devtools/client/application/test/node/components/manifest/components_application_panel-ManifestJsonLink.test.js rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestLoader.test.js => devtools/client/application/test/node/components/manifest/components_application_panel-ManifestLoader.test.js rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestPage.test.js => devtools/client/application/test/node/components/manifest/components_application_panel-ManifestPage.test.js rename : devtools/client/application/test/components/manifest/components_application_panel-ManifestSection.test.js => devtools/client/application/test/node/components/manifest/components_application_panel-ManifestSection.test.js rename : devtools/client/application/test/components/routing/__snapshots__/components_application_panel-PageSwitcher.test.js.snap => devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-PageSwitcher.test.js.snap rename : devtools/client/application/test/components/routing/__snapshots__/components_application_panel-Sidebar.test.js.snap => devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-Sidebar.test.js.snap rename : devtools/client/application/test/components/routing/__snapshots__/components_application_panel-SidebarItem.test.js.snap => devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-SidebarItem.test.js.snap rename : devtools/client/application/test/components/routing/components_application_panel-PageSwitcher.test.js => devtools/client/application/test/node/components/routing/components_application_panel-PageSwitcher.test.js rename : devtools/client/application/test/components/routing/components_application_panel-Sidebar.test.js => devtools/client/application/test/node/components/routing/components_application_panel-Sidebar.test.js rename : devtools/client/application/test/components/routing/components_application_panel-SidebarItem.test.js => devtools/client/application/test/node/components/routing/components_application_panel-SidebarItem.test.js rename : devtools/client/application/test/components/service-workers/__snapshots__/components_application_panel-WorkerList.test.js.snap => devtools/client/application/test/node/components/service-workers/__snapshots__/components_application_panel-WorkerList.test.js.snap rename : devtools/client/application/test/components/service-workers/__snapshots__/components_application_panel-WorkerListEmpty.test.js.snap => devtools/client/application/test/node/components/service-workers/__snapshots__/components_application_panel-WorkerListEmpty.test.js.snap rename : devtools/client/application/test/components/service-workers/__snapshots__/components_application_panel-WorkersPage.test.js.snap => devtools/client/application/test/node/components/service-workers/__snapshots__/components_application_panel-WorkersPage.test.js.snap rename : devtools/client/application/test/components/service-workers/components_application_panel-WorkerList.test.js => devtools/client/application/test/node/components/service-workers/components_application_panel-WorkerList.test.js rename : devtools/client/application/test/components/service-workers/components_application_panel-WorkerListEmpty.test.js => devtools/client/application/test/node/components/service-workers/components_application_panel-WorkerListEmpty.test.js rename : devtools/client/application/test/components/service-workers/components_application_panel-WorkersPage.test.js => devtools/client/application/test/node/components/service-workers/components_application_panel-WorkersPage.test.js rename : devtools/client/application/test/components/fixtures/Chrome.js => devtools/client/application/test/node/fixtures/Chrome.js rename : devtools/client/application/test/components/fixtures/Services.js => devtools/client/application/test/node/fixtures/Services.js rename : devtools/client/application/test/components/fixtures/data/constants.js => devtools/client/application/test/node/fixtures/data/constants.js rename : devtools/client/application/test/components/fixtures/fluent-l10n.js => devtools/client/application/test/node/fixtures/fluent-l10n.js rename : devtools/client/application/test/components/fixtures/stub.js => devtools/client/application/test/node/fixtures/stub.js rename : devtools/client/application/test/components/fixtures/unicode-url.js => devtools/client/application/test/node/fixtures/unicode-url.js rename : devtools/client/application/test/components/helpers/helpers.js => devtools/client/application/test/node/helpers.js rename : devtools/client/application/test/components/jest.config.js => devtools/client/application/test/node/jest.config.js rename : devtools/client/application/test/components/package.json => devtools/client/application/test/node/package.json rename : devtools/client/application/test/components/setup.js => devtools/client/application/test/node/setup.js rename : devtools/client/application/test/components/yarn.lock => devtools/client/application/test/node/yarn.lock extra : moz-landing-system : lando --- .../application/test/{components => node}/.eslintrc.js | 0 .../application/test/{components => node}/babel.config.js | 0 .../components_application_panel-App.test.js.snap | 0 .../components/components_application_panel-App.test.js | 0 .../components_application_panel-Manifest.test.js.snap | 0 ...ponents_application_panel-ManifestColorItem.test.js.snap | 0 .../components_application_panel-ManifestEmpty.test.js.snap | 0 ...mponents_application_panel-ManifestIconItem.test.js.snap | 0 .../components_application_panel-ManifestIssue.test.js.snap | 0 ...ponents_application_panel-ManifestIssueList.test.js.snap | 0 .../components_application_panel-ManifestItem.test.js.snap | 0 ...mponents_application_panel-ManifestJsonLink.test.js.snap | 0 ...components_application_panel-ManifestLoader.test.js.snap | 0 .../components_application_panel-ManifestPage.test.js.snap | 0 ...omponents_application_panel-ManifestSection.test.js.snap | 0 .../manifest/components_application_panel-Manifest.test.js | 2 +- .../components_application_panel-ManifestColorItem.test.js | 0 .../components_application_panel-ManifestEmpty.test.js | 0 .../components_application_panel-ManifestIconItem.test.js | 0 .../components_application_panel-ManifestIssue.test.js | 0 .../components_application_panel-ManifestIssueList.test.js | 0 .../components_application_panel-ManifestItem.test.js | 0 .../components_application_panel-ManifestJsonLink.test.js | 0 .../components_application_panel-ManifestLoader.test.js | 4 ++-- .../components_application_panel-ManifestPage.test.js | 6 ++---- .../components_application_panel-ManifestSection.test.js | 0 .../components_application_panel-PageSwitcher.test.js.snap | 0 .../components_application_panel-Sidebar.test.js.snap | 0 .../components_application_panel-SidebarItem.test.js.snap | 0 .../components_application_panel-PageSwitcher.test.js | 4 +--- .../routing/components_application_panel-Sidebar.test.js | 4 +--- .../components_application_panel-SidebarItem.test.js | 4 +--- .../components_application_panel-WorkerList.test.js.snap | 0 ...omponents_application_panel-WorkerListEmpty.test.js.snap | 0 .../components_application_panel-WorkersPage.test.js.snap | 0 .../components_application_panel-WorkerList.test.js | 2 +- .../components_application_panel-WorkerListEmpty.test.js | 0 .../components_application_panel-WorkersPage.test.js | 6 ++---- .../test/{components => node}/fixtures/Chrome.js | 0 .../test/{components => node}/fixtures/Services.js | 0 .../test/{components => node}/fixtures/data/constants.js | 0 .../test/{components => node}/fixtures/fluent-l10n.js | 0 .../application/test/{components => node}/fixtures/stub.js | 0 .../test/{components => node}/fixtures/unicode-url.js | 0 .../test/{components/helpers => node}/helpers.js | 0 .../application/test/{components => node}/jest.config.js | 0 .../application/test/{components => node}/package.json | 0 .../client/application/test/{components => node}/setup.js | 0 .../client/application/test/{components => node}/yarn.lock | 0 devtools/client/bin/devtools-node-test-runner.js | 2 +- 50 files changed, 12 insertions(+), 22 deletions(-) rename devtools/client/application/test/{components => node}/.eslintrc.js (100%) rename devtools/client/application/test/{components => node}/babel.config.js (100%) rename devtools/client/application/test/{ => node}/components/__snapshots__/components_application_panel-App.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/components_application_panel-App.test.js (100%) rename devtools/client/application/test/{ => node}/components/manifest/__snapshots__/components_application_panel-Manifest.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/manifest/__snapshots__/components_application_panel-ManifestColorItem.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/manifest/__snapshots__/components_application_panel-ManifestEmpty.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/manifest/__snapshots__/components_application_panel-ManifestIconItem.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/manifest/__snapshots__/components_application_panel-ManifestIssue.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/manifest/__snapshots__/components_application_panel-ManifestIssueList.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/manifest/__snapshots__/components_application_panel-ManifestItem.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/manifest/__snapshots__/components_application_panel-ManifestJsonLink.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/manifest/__snapshots__/components_application_panel-ManifestLoader.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/manifest/__snapshots__/components_application_panel-ManifestPage.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/manifest/__snapshots__/components_application_panel-ManifestSection.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/manifest/components_application_panel-Manifest.test.js (96%) rename devtools/client/application/test/{ => node}/components/manifest/components_application_panel-ManifestColorItem.test.js (100%) rename devtools/client/application/test/{ => node}/components/manifest/components_application_panel-ManifestEmpty.test.js (100%) rename devtools/client/application/test/{ => node}/components/manifest/components_application_panel-ManifestIconItem.test.js (100%) rename devtools/client/application/test/{ => node}/components/manifest/components_application_panel-ManifestIssue.test.js (100%) rename devtools/client/application/test/{ => node}/components/manifest/components_application_panel-ManifestIssueList.test.js (100%) rename devtools/client/application/test/{ => node}/components/manifest/components_application_panel-ManifestItem.test.js (100%) rename devtools/client/application/test/{ => node}/components/manifest/components_application_panel-ManifestJsonLink.test.js (100%) rename devtools/client/application/test/{ => node}/components/manifest/components_application_panel-ManifestLoader.test.js (95%) rename devtools/client/application/test/{ => node}/components/manifest/components_application_panel-ManifestPage.test.js (89%) rename devtools/client/application/test/{ => node}/components/manifest/components_application_panel-ManifestSection.test.js (100%) rename devtools/client/application/test/{ => node}/components/routing/__snapshots__/components_application_panel-PageSwitcher.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/routing/__snapshots__/components_application_panel-Sidebar.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/routing/__snapshots__/components_application_panel-SidebarItem.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/routing/components_application_panel-PageSwitcher.test.js (95%) rename devtools/client/application/test/{ => node}/components/routing/components_application_panel-Sidebar.test.js (93%) rename devtools/client/application/test/{ => node}/components/routing/components_application_panel-SidebarItem.test.js (95%) rename devtools/client/application/test/{ => node}/components/service-workers/__snapshots__/components_application_panel-WorkerList.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/service-workers/__snapshots__/components_application_panel-WorkerListEmpty.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/service-workers/__snapshots__/components_application_panel-WorkersPage.test.js.snap (100%) rename devtools/client/application/test/{ => node}/components/service-workers/components_application_panel-WorkerList.test.js (92%) rename devtools/client/application/test/{ => node}/components/service-workers/components_application_panel-WorkerListEmpty.test.js (100%) rename devtools/client/application/test/{ => node}/components/service-workers/components_application_panel-WorkersPage.test.js (92%) rename devtools/client/application/test/{components => node}/fixtures/Chrome.js (100%) rename devtools/client/application/test/{components => node}/fixtures/Services.js (100%) rename devtools/client/application/test/{components => node}/fixtures/data/constants.js (100%) rename devtools/client/application/test/{components => node}/fixtures/fluent-l10n.js (100%) rename devtools/client/application/test/{components => node}/fixtures/stub.js (100%) rename devtools/client/application/test/{components => node}/fixtures/unicode-url.js (100%) rename devtools/client/application/test/{components/helpers => node}/helpers.js (100%) rename devtools/client/application/test/{components => node}/jest.config.js (100%) rename devtools/client/application/test/{components => node}/package.json (100%) rename devtools/client/application/test/{components => node}/setup.js (100%) rename devtools/client/application/test/{components => node}/yarn.lock (100%) diff --git a/devtools/client/application/test/components/.eslintrc.js b/devtools/client/application/test/node/.eslintrc.js similarity index 100% rename from devtools/client/application/test/components/.eslintrc.js rename to devtools/client/application/test/node/.eslintrc.js diff --git a/devtools/client/application/test/components/babel.config.js b/devtools/client/application/test/node/babel.config.js similarity index 100% rename from devtools/client/application/test/components/babel.config.js rename to devtools/client/application/test/node/babel.config.js diff --git a/devtools/client/application/test/components/__snapshots__/components_application_panel-App.test.js.snap b/devtools/client/application/test/node/components/__snapshots__/components_application_panel-App.test.js.snap similarity index 100% rename from devtools/client/application/test/components/__snapshots__/components_application_panel-App.test.js.snap rename to devtools/client/application/test/node/components/__snapshots__/components_application_panel-App.test.js.snap diff --git a/devtools/client/application/test/components/components_application_panel-App.test.js b/devtools/client/application/test/node/components/components_application_panel-App.test.js similarity index 100% rename from devtools/client/application/test/components/components_application_panel-App.test.js rename to devtools/client/application/test/node/components/components_application_panel-App.test.js diff --git a/devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-Manifest.test.js.snap b/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-Manifest.test.js.snap similarity index 100% rename from devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-Manifest.test.js.snap rename to devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-Manifest.test.js.snap diff --git a/devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestColorItem.test.js.snap b/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestColorItem.test.js.snap similarity index 100% rename from devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestColorItem.test.js.snap rename to devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestColorItem.test.js.snap diff --git a/devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestEmpty.test.js.snap b/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestEmpty.test.js.snap similarity index 100% rename from devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestEmpty.test.js.snap rename to devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestEmpty.test.js.snap diff --git a/devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestIconItem.test.js.snap b/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestIconItem.test.js.snap similarity index 100% rename from devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestIconItem.test.js.snap rename to devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestIconItem.test.js.snap diff --git a/devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestIssue.test.js.snap b/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestIssue.test.js.snap similarity index 100% rename from devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestIssue.test.js.snap rename to devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestIssue.test.js.snap diff --git a/devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestIssueList.test.js.snap b/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestIssueList.test.js.snap similarity index 100% rename from devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestIssueList.test.js.snap rename to devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestIssueList.test.js.snap diff --git a/devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestItem.test.js.snap b/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestItem.test.js.snap similarity index 100% rename from devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestItem.test.js.snap rename to devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestItem.test.js.snap diff --git a/devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestJsonLink.test.js.snap b/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestJsonLink.test.js.snap similarity index 100% rename from devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestJsonLink.test.js.snap rename to devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestJsonLink.test.js.snap diff --git a/devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestLoader.test.js.snap b/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestLoader.test.js.snap similarity index 100% rename from devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestLoader.test.js.snap rename to devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestLoader.test.js.snap diff --git a/devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestPage.test.js.snap b/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestPage.test.js.snap similarity index 100% rename from devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestPage.test.js.snap rename to devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestPage.test.js.snap diff --git a/devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestSection.test.js.snap b/devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestSection.test.js.snap similarity index 100% rename from devtools/client/application/test/components/manifest/__snapshots__/components_application_panel-ManifestSection.test.js.snap rename to devtools/client/application/test/node/components/manifest/__snapshots__/components_application_panel-ManifestSection.test.js.snap diff --git a/devtools/client/application/test/components/manifest/components_application_panel-Manifest.test.js b/devtools/client/application/test/node/components/manifest/components_application_panel-Manifest.test.js similarity index 96% rename from devtools/client/application/test/components/manifest/components_application_panel-Manifest.test.js rename to devtools/client/application/test/node/components/manifest/components_application_panel-Manifest.test.js index 54d3df80781d..58308d90dfa9 100644 --- a/devtools/client/application/test/components/manifest/components_application_panel-Manifest.test.js +++ b/devtools/client/application/test/node/components/manifest/components_application_panel-Manifest.test.js @@ -18,7 +18,7 @@ const { MANIFEST_UNKNOWN_TYPE_MEMBERS, MANIFEST_NO_ISSUES, MANIFEST_WITH_ISSUES, -} = require("../fixtures/data/constants"); +} = require("devtools/client/application/test/node/fixtures/data/constants"); /* * Test for Manifest component diff --git a/devtools/client/application/test/components/manifest/components_application_panel-ManifestColorItem.test.js b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestColorItem.test.js similarity index 100% rename from devtools/client/application/test/components/manifest/components_application_panel-ManifestColorItem.test.js rename to devtools/client/application/test/node/components/manifest/components_application_panel-ManifestColorItem.test.js diff --git a/devtools/client/application/test/components/manifest/components_application_panel-ManifestEmpty.test.js b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestEmpty.test.js similarity index 100% rename from devtools/client/application/test/components/manifest/components_application_panel-ManifestEmpty.test.js rename to devtools/client/application/test/node/components/manifest/components_application_panel-ManifestEmpty.test.js diff --git a/devtools/client/application/test/components/manifest/components_application_panel-ManifestIconItem.test.js b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestIconItem.test.js similarity index 100% rename from devtools/client/application/test/components/manifest/components_application_panel-ManifestIconItem.test.js rename to devtools/client/application/test/node/components/manifest/components_application_panel-ManifestIconItem.test.js diff --git a/devtools/client/application/test/components/manifest/components_application_panel-ManifestIssue.test.js b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestIssue.test.js similarity index 100% rename from devtools/client/application/test/components/manifest/components_application_panel-ManifestIssue.test.js rename to devtools/client/application/test/node/components/manifest/components_application_panel-ManifestIssue.test.js diff --git a/devtools/client/application/test/components/manifest/components_application_panel-ManifestIssueList.test.js b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestIssueList.test.js similarity index 100% rename from devtools/client/application/test/components/manifest/components_application_panel-ManifestIssueList.test.js rename to devtools/client/application/test/node/components/manifest/components_application_panel-ManifestIssueList.test.js diff --git a/devtools/client/application/test/components/manifest/components_application_panel-ManifestItem.test.js b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestItem.test.js similarity index 100% rename from devtools/client/application/test/components/manifest/components_application_panel-ManifestItem.test.js rename to devtools/client/application/test/node/components/manifest/components_application_panel-ManifestItem.test.js diff --git a/devtools/client/application/test/components/manifest/components_application_panel-ManifestJsonLink.test.js b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestJsonLink.test.js similarity index 100% rename from devtools/client/application/test/components/manifest/components_application_panel-ManifestJsonLink.test.js rename to devtools/client/application/test/node/components/manifest/components_application_panel-ManifestJsonLink.test.js diff --git a/devtools/client/application/test/components/manifest/components_application_panel-ManifestLoader.test.js b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestLoader.test.js similarity index 95% rename from devtools/client/application/test/components/manifest/components_application_panel-ManifestLoader.test.js rename to devtools/client/application/test/node/components/manifest/components_application_panel-ManifestLoader.test.js index 14ae8a76a199..37d5c32de8ef 100644 --- a/devtools/client/application/test/components/manifest/components_application_panel-ManifestLoader.test.js +++ b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestLoader.test.js @@ -10,11 +10,11 @@ const { createFactory } = require("react"); const { flushPromises, setupStore, -} = require("devtools/client/application/test/components/helpers/helpers"); +} = require("devtools/client/application/test/node/helpers"); // Import fixtures const { MANIFEST_NO_ISSUES, -} = require("devtools/client/application/test/components/fixtures/data/constants"); +} = require("devtools/client/application/test/node/fixtures/data/constants"); // Import app modules const { diff --git a/devtools/client/application/test/components/manifest/components_application_panel-ManifestPage.test.js b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestPage.test.js similarity index 89% rename from devtools/client/application/test/components/manifest/components_application_panel-ManifestPage.test.js rename to devtools/client/application/test/node/components/manifest/components_application_panel-ManifestPage.test.js index a7b2cfae3ecd..021c4e9f1a9c 100644 --- a/devtools/client/application/test/components/manifest/components_application_panel-ManifestPage.test.js +++ b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestPage.test.js @@ -7,12 +7,10 @@ const { shallow } = require("enzyme"); const { createFactory } = require("react"); -const { - setupStore, -} = require("devtools/client/application/test/components/helpers/helpers"); +const { setupStore } = require("devtools/client/application/test/node/helpers"); const { MANIFEST_SIMPLE, -} = require("devtools/client/application/test/components/fixtures/data/constants"); +} = require("devtools/client/application/test/node/fixtures/data/constants"); const ManifestPage = createFactory( require("devtools/client/application/src/components/manifest/ManifestPage") diff --git a/devtools/client/application/test/components/manifest/components_application_panel-ManifestSection.test.js b/devtools/client/application/test/node/components/manifest/components_application_panel-ManifestSection.test.js similarity index 100% rename from devtools/client/application/test/components/manifest/components_application_panel-ManifestSection.test.js rename to devtools/client/application/test/node/components/manifest/components_application_panel-ManifestSection.test.js diff --git a/devtools/client/application/test/components/routing/__snapshots__/components_application_panel-PageSwitcher.test.js.snap b/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-PageSwitcher.test.js.snap similarity index 100% rename from devtools/client/application/test/components/routing/__snapshots__/components_application_panel-PageSwitcher.test.js.snap rename to devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-PageSwitcher.test.js.snap diff --git a/devtools/client/application/test/components/routing/__snapshots__/components_application_panel-Sidebar.test.js.snap b/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-Sidebar.test.js.snap similarity index 100% rename from devtools/client/application/test/components/routing/__snapshots__/components_application_panel-Sidebar.test.js.snap rename to devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-Sidebar.test.js.snap diff --git a/devtools/client/application/test/components/routing/__snapshots__/components_application_panel-SidebarItem.test.js.snap b/devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-SidebarItem.test.js.snap similarity index 100% rename from devtools/client/application/test/components/routing/__snapshots__/components_application_panel-SidebarItem.test.js.snap rename to devtools/client/application/test/node/components/routing/__snapshots__/components_application_panel-SidebarItem.test.js.snap diff --git a/devtools/client/application/test/components/routing/components_application_panel-PageSwitcher.test.js b/devtools/client/application/test/node/components/routing/components_application_panel-PageSwitcher.test.js similarity index 95% rename from devtools/client/application/test/components/routing/components_application_panel-PageSwitcher.test.js rename to devtools/client/application/test/node/components/routing/components_application_panel-PageSwitcher.test.js index 97e156403953..e3a7444e7aa1 100644 --- a/devtools/client/application/test/components/routing/components_application_panel-PageSwitcher.test.js +++ b/devtools/client/application/test/node/components/routing/components_application_panel-PageSwitcher.test.js @@ -8,9 +8,7 @@ const { shallow } = require("enzyme"); const { createFactory } = require("react"); // Import setupStore with imported & combined reducers -const { - setupStore, -} = require("devtools/client/application/test/components/helpers/helpers"); +const { setupStore } = require("devtools/client/application/test/node/helpers"); const PageSwitcher = createFactory( require("devtools/client/application/src/components/routing/PageSwitcher") diff --git a/devtools/client/application/test/components/routing/components_application_panel-Sidebar.test.js b/devtools/client/application/test/node/components/routing/components_application_panel-Sidebar.test.js similarity index 93% rename from devtools/client/application/test/components/routing/components_application_panel-Sidebar.test.js rename to devtools/client/application/test/node/components/routing/components_application_panel-Sidebar.test.js index 95af1d9eb33c..7d49eb6839cb 100644 --- a/devtools/client/application/test/components/routing/components_application_panel-Sidebar.test.js +++ b/devtools/client/application/test/node/components/routing/components_application_panel-Sidebar.test.js @@ -7,9 +7,7 @@ const { shallow } = require("enzyme"); const { createFactory } = require("react"); -const { - setupStore, -} = require("devtools/client/application/test/components/helpers/helpers"); +const { setupStore } = require("devtools/client/application/test/node/helpers"); const { PAGE_TYPES } = require("devtools/client/application/src/constants"); diff --git a/devtools/client/application/test/components/routing/components_application_panel-SidebarItem.test.js b/devtools/client/application/test/node/components/routing/components_application_panel-SidebarItem.test.js similarity index 95% rename from devtools/client/application/test/components/routing/components_application_panel-SidebarItem.test.js rename to devtools/client/application/test/node/components/routing/components_application_panel-SidebarItem.test.js index b2ef6506654f..14f91523c464 100644 --- a/devtools/client/application/test/components/routing/components_application_panel-SidebarItem.test.js +++ b/devtools/client/application/test/node/components/routing/components_application_panel-SidebarItem.test.js @@ -7,9 +7,7 @@ const { shallow } = require("enzyme"); const { createFactory } = require("react"); -const { - setupStore, -} = require("devtools/client/application/test/components/helpers/helpers"); +const { setupStore } = require("devtools/client/application/test/node/helpers"); const { PAGE_TYPES } = require("devtools/client/application/src/constants"); diff --git a/devtools/client/application/test/components/service-workers/__snapshots__/components_application_panel-WorkerList.test.js.snap b/devtools/client/application/test/node/components/service-workers/__snapshots__/components_application_panel-WorkerList.test.js.snap similarity index 100% rename from devtools/client/application/test/components/service-workers/__snapshots__/components_application_panel-WorkerList.test.js.snap rename to devtools/client/application/test/node/components/service-workers/__snapshots__/components_application_panel-WorkerList.test.js.snap diff --git a/devtools/client/application/test/components/service-workers/__snapshots__/components_application_panel-WorkerListEmpty.test.js.snap b/devtools/client/application/test/node/components/service-workers/__snapshots__/components_application_panel-WorkerListEmpty.test.js.snap similarity index 100% rename from devtools/client/application/test/components/service-workers/__snapshots__/components_application_panel-WorkerListEmpty.test.js.snap rename to devtools/client/application/test/node/components/service-workers/__snapshots__/components_application_panel-WorkerListEmpty.test.js.snap diff --git a/devtools/client/application/test/components/service-workers/__snapshots__/components_application_panel-WorkersPage.test.js.snap b/devtools/client/application/test/node/components/service-workers/__snapshots__/components_application_panel-WorkersPage.test.js.snap similarity index 100% rename from devtools/client/application/test/components/service-workers/__snapshots__/components_application_panel-WorkersPage.test.js.snap rename to devtools/client/application/test/node/components/service-workers/__snapshots__/components_application_panel-WorkersPage.test.js.snap diff --git a/devtools/client/application/test/components/service-workers/components_application_panel-WorkerList.test.js b/devtools/client/application/test/node/components/service-workers/components_application_panel-WorkerList.test.js similarity index 92% rename from devtools/client/application/test/components/service-workers/components_application_panel-WorkerList.test.js rename to devtools/client/application/test/node/components/service-workers/components_application_panel-WorkerList.test.js index 5412cf63e1bb..f220bf0e75b9 100644 --- a/devtools/client/application/test/components/service-workers/components_application_panel-WorkerList.test.js +++ b/devtools/client/application/test/node/components/service-workers/components_application_panel-WorkerList.test.js @@ -11,7 +11,7 @@ const { createFactory } = require("react"); const { SINGLE_WORKER_DEFAULT_DOMAIN_LIST, MULTIPLE_WORKER_LIST, -} = require("devtools/client/application/test/components/fixtures/data/constants"); +} = require("devtools/client/application/test/node/fixtures/data/constants"); const WorkerList = createFactory( require("devtools/client/application/src/components/service-workers/WorkerList") diff --git a/devtools/client/application/test/components/service-workers/components_application_panel-WorkerListEmpty.test.js b/devtools/client/application/test/node/components/service-workers/components_application_panel-WorkerListEmpty.test.js similarity index 100% rename from devtools/client/application/test/components/service-workers/components_application_panel-WorkerListEmpty.test.js rename to devtools/client/application/test/node/components/service-workers/components_application_panel-WorkerListEmpty.test.js diff --git a/devtools/client/application/test/components/service-workers/components_application_panel-WorkersPage.test.js b/devtools/client/application/test/node/components/service-workers/components_application_panel-WorkersPage.test.js similarity index 92% rename from devtools/client/application/test/components/service-workers/components_application_panel-WorkersPage.test.js rename to devtools/client/application/test/node/components/service-workers/components_application_panel-WorkersPage.test.js index 74971d2f52b0..a0bc030b47ce 100644 --- a/devtools/client/application/test/components/service-workers/components_application_panel-WorkersPage.test.js +++ b/devtools/client/application/test/node/components/service-workers/components_application_panel-WorkersPage.test.js @@ -14,12 +14,10 @@ const { SINGLE_WORKER_DIFFERENT_DOMAIN_LIST, MULTIPLE_WORKER_LIST, MULTIPLE_WORKER_MIXED_DOMAINS_LIST, -} = require("devtools/client/application/test/components/fixtures/data/constants"); +} = require("devtools/client/application/test/node/fixtures/data/constants"); // Import setupStore with imported & combined reducers -const { - setupStore, -} = require("devtools/client/application/test/components/helpers/helpers"); +const { setupStore } = require("devtools/client/application/test/node/helpers"); // Import component const WorkersPage = createFactory( diff --git a/devtools/client/application/test/components/fixtures/Chrome.js b/devtools/client/application/test/node/fixtures/Chrome.js similarity index 100% rename from devtools/client/application/test/components/fixtures/Chrome.js rename to devtools/client/application/test/node/fixtures/Chrome.js diff --git a/devtools/client/application/test/components/fixtures/Services.js b/devtools/client/application/test/node/fixtures/Services.js similarity index 100% rename from devtools/client/application/test/components/fixtures/Services.js rename to devtools/client/application/test/node/fixtures/Services.js diff --git a/devtools/client/application/test/components/fixtures/data/constants.js b/devtools/client/application/test/node/fixtures/data/constants.js similarity index 100% rename from devtools/client/application/test/components/fixtures/data/constants.js rename to devtools/client/application/test/node/fixtures/data/constants.js diff --git a/devtools/client/application/test/components/fixtures/fluent-l10n.js b/devtools/client/application/test/node/fixtures/fluent-l10n.js similarity index 100% rename from devtools/client/application/test/components/fixtures/fluent-l10n.js rename to devtools/client/application/test/node/fixtures/fluent-l10n.js diff --git a/devtools/client/application/test/components/fixtures/stub.js b/devtools/client/application/test/node/fixtures/stub.js similarity index 100% rename from devtools/client/application/test/components/fixtures/stub.js rename to devtools/client/application/test/node/fixtures/stub.js diff --git a/devtools/client/application/test/components/fixtures/unicode-url.js b/devtools/client/application/test/node/fixtures/unicode-url.js similarity index 100% rename from devtools/client/application/test/components/fixtures/unicode-url.js rename to devtools/client/application/test/node/fixtures/unicode-url.js diff --git a/devtools/client/application/test/components/helpers/helpers.js b/devtools/client/application/test/node/helpers.js similarity index 100% rename from devtools/client/application/test/components/helpers/helpers.js rename to devtools/client/application/test/node/helpers.js diff --git a/devtools/client/application/test/components/jest.config.js b/devtools/client/application/test/node/jest.config.js similarity index 100% rename from devtools/client/application/test/components/jest.config.js rename to devtools/client/application/test/node/jest.config.js diff --git a/devtools/client/application/test/components/package.json b/devtools/client/application/test/node/package.json similarity index 100% rename from devtools/client/application/test/components/package.json rename to devtools/client/application/test/node/package.json diff --git a/devtools/client/application/test/components/setup.js b/devtools/client/application/test/node/setup.js similarity index 100% rename from devtools/client/application/test/components/setup.js rename to devtools/client/application/test/node/setup.js diff --git a/devtools/client/application/test/components/yarn.lock b/devtools/client/application/test/node/yarn.lock similarity index 100% rename from devtools/client/application/test/components/yarn.lock rename to devtools/client/application/test/node/yarn.lock diff --git a/devtools/client/bin/devtools-node-test-runner.js b/devtools/client/bin/devtools-node-test-runner.js index 1e997827040a..77a7c6580a43 100644 --- a/devtools/client/bin/devtools-node-test-runner.js +++ b/devtools/client/bin/devtools-node-test-runner.js @@ -34,7 +34,7 @@ const SUITES = { type: TEST_TYPES.JEST, }, application: { - path: "../application/test/components", + path: "../application/test/node", type: TEST_TYPES.JEST, }, compatibility: {