-
-
Notifications
You must be signed in to change notification settings - Fork 105
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(stencil): resolve
validateConfig
error from @stencil/[email protected]…
….0 onward
- Loading branch information
1 parent
2bbadf4
commit f5b8725
Showing
2 changed files
with
33 additions
and
2 deletions.
There are no files selected for viewing
25 changes: 25 additions & 0 deletions
25
packages/stencil/src/executors/stencil-runtime/stencil-process.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import { CompilerSystem, createNodeSys } from '@stencil/core/sys/node'; | ||
|
||
import { loadCoreCompiler } from './stencil-process'; | ||
|
||
function getCompilerExecutingPath(): string { | ||
return require.resolve('@stencil/core/compiler'); | ||
} | ||
|
||
describe('process', () => { | ||
describe('loadCoreCompiler', () => { | ||
it('should return globalThis.stencil', async () => { | ||
const sys: CompilerSystem = createNodeSys({ process }); | ||
|
||
if (sys.getCompilerExecutingPath == null) { | ||
sys.getCompilerExecutingPath = getCompilerExecutingPath; | ||
} | ||
|
||
expect(globalThis.stencil).toBeUndefined(); | ||
|
||
await loadCoreCompiler(sys); | ||
|
||
expect(globalThis.stencil).toBeTruthy(); | ||
}); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters