Skip to content

Commit 6a35a2d

Browse files
formatting
1 parent 496d28f commit 6a35a2d

1 file changed

Lines changed: 18 additions & 18 deletions

File tree

‎packages/start-plugin-core/tests/compiler.test.ts‎

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -392,23 +392,23 @@ describe('edge cases for detectedKinds', () => {
392392
})
393393
})
394394

395-
test('ingestModule handles empty code gracefully', () => {
396-
const compiler = new ServerFnCompiler({
397-
env: 'client',
398-
directive: 'use server',
399-
lookupKinds: new Set(['ServerFn']),
400-
lookupConfigurations: [],
401-
loadModule: async () => {},
402-
resolveId: async (id) => id,
403-
})
395+
test('ingestModule handles empty code gracefully', () => {
396+
const compiler = new ServerFnCompiler({
397+
env: 'client',
398+
directive: 'use server',
399+
lookupKinds: new Set(['ServerFn']),
400+
lookupConfigurations: [],
401+
loadModule: async () => {},
402+
resolveId: async (id) => id,
403+
})
404404

405-
// Should not throw when ingesting empty module
406-
expect(() => {
407-
compiler.ingestModule({ code: '', id: 'empty-types.ts' })
408-
}).not.toThrow()
405+
// Should not throw when ingesting empty module
406+
expect(() => {
407+
compiler.ingestModule({ code: '', id: 'empty-types.ts' })
408+
}).not.toThrow()
409409

410-
// Should also handle whitespace-only modules
411-
expect(() => {
412-
compiler.ingestModule({ code: ' \n\t ', id: 'whitespace.ts' })
413-
}).not.toThrow()
414-
})
410+
// Should also handle whitespace-only modules
411+
expect(() => {
412+
compiler.ingestModule({ code: ' \n\t ', id: 'whitespace.ts' })
413+
}).not.toThrow()
414+
})

0 commit comments

Comments
 (0)