Skip to content

Commit a07e47d

Browse files
chore: move tests to subfolders because webstorm does not resolve globals (#36)
1 parent d2c0a97 commit a07e47d

File tree

7 files changed

+17
-8
lines changed

7 files changed

+17
-8
lines changed

plugins/nextjs-plugin/src/index.spec.ts renamed to plugins/nextjs-plugin/src/tests/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as pluginTools from '@junobuild/plugin-tools';
22
import {JunoPluginError} from '@junobuild/plugin-tools';
33

4-
import {withJuno} from './index';
4+
import {withJuno} from '../index';
55

66
describe('withJuno', () => {
77
beforeEach(() => {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../../../tsconfig.spec.json"
3+
}

plugins/plugin-tools/src/config.spec.ts renamed to plugins/plugin-tools/src/tests/config.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import {
88
orbiterId,
99
satelliteId,
1010
useDockerContainer
11-
} from './config';
11+
} from '../config';
1212
import {
1313
CMC_ID,
1414
DOCKER_SATELLITE_ID,
@@ -17,8 +17,8 @@ import {
1717
INTERNET_IDENTITY_ID,
1818
MODE_DEVELOPMENT,
1919
NNS_GOVERNANCE_ID
20-
} from './constants';
21-
import {JunoPluginError} from './error';
20+
} from '../constants';
21+
import {JunoPluginError} from '../error';
2222

2323
vi.mock('@junobuild/config-loader', async () => {
2424
// eslint-disable-next-line @typescript-eslint/consistent-type-imports

plugins/plugin-tools/src/init.spec.ts renamed to plugins/plugin-tools/src/tests/init.spec.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ import {
1010
INTERNET_IDENTITY_ID,
1111
MODE_DEVELOPMENT,
1212
NNS_GOVERNANCE_ID
13-
} from './constants';
14-
import {initConfig} from './init';
15-
import type {ConfigArgs} from './types';
13+
} from '../constants';
14+
import {initConfig} from '../init';
15+
import type {ConfigArgs} from '../types';
1616

1717
vi.mock('@junobuild/config-loader', async () => {
1818
// eslint-disable-next-line @typescript-eslint/consistent-type-imports
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../../../tsconfig.spec.json"
3+
}

plugins/vite-plugin/src/index.spec.ts renamed to plugins/vite-plugin/src/tests/index.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as pluginTools from '@junobuild/plugin-tools';
22
import type {UserConfig} from 'vite';
33

4-
import Juno from './index';
4+
import Juno from '../index';
55

66
describe('vite-plugin-juno', () => {
77
beforeEach(() => {
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"extends": "../../../../tsconfig.spec.json"
3+
}

0 commit comments

Comments
 (0)