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
This commit is contained in:
Belén Albeza 2019-10-21 10:50:28 +00:00
parent 0197fabfc9
commit ac8c98c2d3
50 changed files with 12 additions and 22 deletions

View File

@ -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

View File

@ -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 {

View File

@ -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")

View File

@ -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")

View File

@ -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");

View File

@ -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");

View File

@ -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")

View File

@ -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(

View File

@ -34,7 +34,7 @@ const SUITES = {
type: TEST_TYPES.JEST,
},
application: {
path: "../application/test/components",
path: "../application/test/node",
type: TEST_TYPES.JEST,
},
compatibility: {