Skip to content

Commit 0d1e946

Browse files
committed
Adjust test mocks paths
1 parent 03ab0cf commit 0d1e946

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

test/unit/json-viewer.spec.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ describe('json-viewer', () => {
88
});
99

1010
it('should return proper json property passed in params', () => {
11-
const mockConfigPath = path.resolve(`${__dirname}/../helpers/mock/config.file.mock.json`);
11+
const mockConfigPath = path.resolve(process.cwd(), 'test/helpers/mock/config.file.mock.json');
1212
const params = {
1313
_: [
1414
mockConfigPath,

test/unit/utils/config.spec.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,8 @@ describe('config', () => {
1818
});
1919

2020
describe('getUserConfig', () => {
21-
const jsMockConfigPath = path.resolve(`${__dirname}/../helpers/mock/config.file.mock.js`);
22-
const jsonMockConfigPath = path.resolve(`${__dirname}/../helpers/mock/config.file.mock.json`);
21+
const jsMockConfigPath = path.resolve(process.cwd(), 'test/helpers/mock/config.file.mock.js');
22+
const jsonMockConfigPath = path.resolve(process.cwd(), 'test/helpers/mock/config.file.mock.json');
2323

2424
it('should return some user config', () => {
2525
const userConfig = getUserConfig();

0 commit comments

Comments
 (0)