Skip to content

Commit 9317bc0

Browse files
authored
Fix failing CI dev-tests (#10347)
* Handle emitLegacyCommonJSImports in graphql-modules consistently like other plugins * Update dev-test output * Revert unncessary changes * Avoid accidental overrides
1 parent d94ae3d commit 9317bc0

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

dev-test/modules/blog/generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Types from '../types';
1+
import * as Types from '../types.js';
22
import * as gm from 'graphql-modules';
33
export namespace BlogModule {
44
interface DefinedFields {

dev-test/modules/common/generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Types from '../types';
1+
import * as Types from '../types.js';
22
import * as gm from 'graphql-modules';
33
export namespace CommonModule {
44
interface DefinedFields {

dev-test/modules/dotanions/generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Types from '../types';
1+
import * as Types from '../types.js';
22
import * as gm from 'graphql-modules';
33
export namespace DotanionsModule {
44
interface DefinedFields {

dev-test/modules/users/generated.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import * as Types from '../types';
1+
import * as Types from '../types.js';
22
import * as gm from 'graphql-modules';
33
export namespace UsersModule {
44
interface DefinedFields {

packages/presets/graphql-modules/tests/integration.spec.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,8 +201,8 @@ describe('Integration', () => {
201201

202202
test('import paths for ESM should have correct extension', async () => {
203203
const emitLegacyCommonJSImports = {
204-
emitLegacyCommonJSImports: false,
205204
...options,
205+
emitLegacyCommonJSImports: false,
206206
};
207207
const output = await executeCodegen(emitLegacyCommonJSImports);
208208
const esmImportStatement = `import * as Types from "../global-types.js";`;

0 commit comments

Comments
 (0)