diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-19 15:07:15 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-05-19 15:07:15 +0300 |
commit | ba55ca9bc4bf2c85d2d78fcb11552ad130151110 (patch) | |
tree | 8a205191235a5b2b29e5eaacf9224c73052dddc9 /spec/frontend/environment.js | |
parent | ee3d5f16e3aa642944b121645764e33604a31307 (diff) |
Add latest changes from gitlab-org/gitlab@master
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 |