diff --git a/jest.config.unit.js b/jest.config.unit.js index 80f3f79c0..aead37c65 100644 --- a/jest.config.unit.js +++ b/jest.config.unit.js @@ -5,6 +5,7 @@ module.exports = { verbose: true, collectCoverage: true, testEnvironment: 'jest-environment-jsdom-global', + testURL: 'http://localhost', testRegex: '(test/unit.*\\.spec|test/unit/webui/.*\\.spec)\\.js', setupFiles: [ './test/unit/setup.js' diff --git a/test/unit/webui/components/PackageSidebar/__snapshots__/dependencies.spec.js.snap b/test/unit/webui/components/PackageSidebar/__snapshots__/dependencies.spec.js.snap index 3c5315f22..00cb813dd 100644 --- a/test/unit/webui/components/PackageSidebar/__snapshots__/dependencies.spec.js.snap +++ b/test/unit/webui/components/PackageSidebar/__snapshots__/dependencies.spec.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[` : should load the package and match snapshot 1`] = `""`; +exports[` : should load the package and match snapshot 1`] = `""`; diff --git a/test/unit/webui/components/__snapshots__/header.spec.js.snap b/test/unit/webui/components/__snapshots__/header.spec.js.snap index 2e310c915..de2440546 100644 --- a/test/unit/webui/components/__snapshots__/header.spec.js.snap +++ b/test/unit/webui/components/__snapshots__/header.spec.js.snap @@ -1,3 +1,3 @@ // Jest Snapshot v1, https://goo.gl/fbAQLP -exports[`
snapshot test shoud match snapshot 1`] = `"
npm set registry nullblank
npm adduser --registry nullblank
Login



"`; +exports[`
snapshot test shoud match snapshot 1`] = `"
npm set registry http://localhost
npm adduser --registry http://localhost
Login



"`;