summaryrefslogtreecommitdiff
path: root/spec/frontend/helpers
diff options
context:
space:
mode:
authorWinnie Hellmann <winnie@gitlab.com>2019-04-25 11:49:06 +0200
committerWinnie Hellmann <winnie@gitlab.com>2019-05-02 23:11:18 +0200
commitfbac16b2de4b715a85dfd2b79768079d12229bc1 (patch)
tree5cd08edf46399c869b30d3cf2c5c78022726427c /spec/frontend/helpers
parent6e3165f0b4bcbb12d88b653df7f6b66349b7b375 (diff)
downloadgitlab-ce-fbac16b2de4b715a85dfd2b79768079d12229bc1.tar.gz
Load EE fixtures from ee/ directory in Jestwinh-separate-frontend-fixtures
(cherry picked from commit 2917a28a885922a03f2026ddbb2680bc2b6e5d50)
Diffstat (limited to 'spec/frontend/helpers')
-rw-r--r--spec/frontend/helpers/fixtures.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/spec/frontend/helpers/fixtures.js b/spec/frontend/helpers/fixtures.js
index f0351aa31c6..b77bcd6266e 100644
--- a/spec/frontend/helpers/fixtures.js
+++ b/spec/frontend/helpers/fixtures.js
@@ -3,10 +3,8 @@ import path from 'path';
import { ErrorWithStack } from 'jest-util';
-const fixturesBasePath = path.join(process.cwd(), 'spec', 'javascripts', 'fixtures');
-
export function getFixture(relativePath) {
- const absolutePath = path.join(fixturesBasePath, relativePath);
+ const absolutePath = path.join(global.fixturesBasePath, relativePath);
if (!fs.existsSync(absolutePath)) {
throw new ErrorWithStack(
`Fixture file ${relativePath} does not exist.