We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4ecd858 commit 4c02535Copy full SHA for 4c02535
test/utils.test.ts
@@ -1,3 +1,4 @@
1
+import path from 'node:path'
2
import fs from 'node:fs/promises'
3
import { describe, expect, it, vi } from 'vitest'
4
@@ -81,7 +82,7 @@ describe('createStencilConfigFile', () => {
81
82
it('should create a config file', async () => {
83
const options = { rootPath: '/test' }
84
const configPath = await createStencilConfigFile(options)
- expect(configPath).toBe('/test/.stencil/test.stencil.config.ts')
85
+ expect(configPath).toBe(path.resolve('test', '.stencil', 'test.stencil.config.ts'))
86
expect(fs.mkdir).toHaveBeenCalledWith('/test/.stencil', { recursive: true })
87
expect(fs.writeFile).toHaveBeenCalledWith(configPath, [
88
'import type { Config } from \'@stencil/core\'\n',
0 commit comments