Skip to content

Commit 6ee69df

Browse files
authored
chore(infra/e2e): @e2e/helper rather than #imports (#59)
1 parent f008641 commit 6ee69df

28 files changed

+39
-39
lines changed

e2e/cases/alias/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { buildAndGetResults } from '@e2e/helper';
12
import { expect, test } from 'vitest';
2-
import { buildAndGetResults } from '#shared';
33

44
test('source.alias', async () => {
55
const fixturePath = __dirname;

e2e/cases/alias/rslib.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
12
import { defineConfig } from '@rslib/core';
2-
import { generateBundleCjsConfig, generateBundleEsmConfig } from '#shared';
33

44
export default defineConfig({
55
lib: [generateBundleEsmConfig(__dirname), generateBundleCjsConfig(__dirname)],

e2e/cases/autoExtension/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { extname, join } from 'node:path';
2+
import { buildAndGetResults } from '@e2e/helper';
23
import { expect, test } from 'vitest';
3-
import { buildAndGetResults } from '#shared';
44

55
test('autoExtension generate .mjs in build artifacts with esm format when type is commonjs', async () => {
66
const fixturePath = join(__dirname, 'type-commonjs');

e2e/cases/autoExtension/type-commonjs/rslib.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1+
import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
12
import { defineConfig } from '@rslib/core';
2-
import {
3-
generateBundleCjsConfig,
4-
generateBundleEsmConfig,
5-
} from '../../../scripts/shared';
63

74
export default defineConfig({
85
lib: [

e2e/cases/autoExtension/type-module/rslib.config.ts

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,5 @@
1+
import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
12
import { defineConfig } from '@rslib/core';
2-
import {
3-
generateBundleCjsConfig,
4-
generateBundleEsmConfig,
5-
} from '../../../scripts/shared';
63

74
export default defineConfig({
85
lib: [

e2e/cases/bundle-false/basic/rslib.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { generateBundleCjsConfig, generateBundleEsmConfig } from '@e2e/helper';
12
import { defineConfig } from '@rslib/core';
2-
import { generateBundleCjsConfig, generateBundleEsmConfig } from '#shared';
33

44
export default defineConfig({
55
lib: [

e2e/cases/bundle-false/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { join } from 'node:path';
2+
import { buildAndGetResults } from '@e2e/helper';
23
import { expect, test } from 'vitest';
3-
import { buildAndGetResults } from '#shared';
44

55
test('bundle: false', async () => {
66
const fixturePath = join(__dirname, 'basic');

e2e/cases/cli/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
import { execSync } from 'node:child_process';
22
import path from 'node:path';
3+
import { globContentJSON } from '@e2e/helper';
34
import fse from 'fs-extra';
45
import { expect, test } from 'vitest';
5-
import { globContentJSON } from '#helper';
66

77
test.todo('build command', async () => {});
88

e2e/cases/cli/rslib.config.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { generateBundleEsmConfig } from '@e2e/helper';
12
import { defineConfig } from '@rslib/core';
2-
import { generateBundleEsmConfig } from '#shared';
33

44
export default defineConfig({
55
lib: [generateBundleEsmConfig(__dirname)],

e2e/cases/define/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import { buildAndGetResults } from '@e2e/helper';
12
import { expect, test } from 'vitest';
2-
import { buildAndGetResults } from '#shared';
33

44
test('source.define', async () => {
55
const fixturePath = __dirname;

0 commit comments

Comments
 (0)