diff options
Diffstat (limited to 'spec/frontend/environment.js')
-rw-r--r-- | spec/frontend/environment.js | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/spec/frontend/environment.js b/spec/frontend/environment.js index 4e341b2bb2f..53fbe105ec6 100644 --- a/spec/frontend/environment.js +++ b/spec/frontend/environment.js @@ -1,6 +1,5 @@ /* eslint-disable import/no-commonjs, max-classes-per-file */ -const path = require('path'); const { TestEnvironment } = require('jest-environment-jsdom'); const { ErrorWithStack } = require('jest-util'); const { @@ -10,8 +9,6 @@ const { const { TEST_HOST } = require('./__helpers__/test_constants'); const { createGon } = require('./__helpers__/gon_helper'); -const ROOT_PATH = path.resolve(__dirname, '../..'); - class CustomEnvironment extends TestEnvironment { constructor({ globalConfig, projectConfig }, context) { // Setup testURL so that window.location is setup properly @@ -65,9 +62,6 @@ class CustomEnvironment extends TestEnvironment { this.rejectedPromises.push(error); }; - this.global.fixturesBasePath = `${ROOT_PATH}/tmp/tests/frontend/fixtures${IS_EE ? '-ee' : ''}`; - this.global.staticFixturesBasePath = `${ROOT_PATH}/spec/frontend/fixtures`; - /** * window.fetch() is required by the apollo-upload-client library otherwise * a ReferenceError is generated: https://github.com/jaydenseric/apollo-upload-client/issues/100 |