-
Notifications
You must be signed in to change notification settings - Fork 787
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(testing): add testing sub module to export map (#5873)
* fix(testing): add testing sub module to export map * add require import for ./internal/client
- Loading branch information
1 parent
dfbc340
commit bb2e04f
Showing
3 changed files
with
38 additions
and
16 deletions.
There are no files selected for viewing
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
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
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 |
---|---|---|
@@ -1,19 +1,24 @@ | ||
import assert from 'node:assert' | ||
import assert from 'node:assert'; | ||
|
||
import { run } from '@stencil/core/cli' | ||
import { version } from '@stencil/core/compiler' | ||
import { run } from '@stencil/core/cli'; | ||
import { version } from '@stencil/core/compiler'; | ||
import { MockDocument } from '@stencil/core/mock-doc'; | ||
import type { BuildConditionals } from '@stencil/core/internal'; | ||
import { BUILD } from '@stencil/core/internal/app-data' | ||
import { createNodeLogger } from '@stencil/core/sys/node' | ||
import { BUILD } from '@stencil/core/internal/app-data'; | ||
import { createNodeLogger } from '@stencil/core/sys/node'; | ||
import { createTesting } from '@stencil/core/testing'; | ||
|
||
assert(typeof version === 'string') | ||
version.slice() | ||
BUILD as BuildConditionals | ||
assert(typeof version === 'string'); | ||
version.slice(); | ||
BUILD as BuildConditionals; | ||
|
||
assert(typeof run, 'function') | ||
run.call | ||
assert(typeof run, 'function'); | ||
run.call; | ||
|
||
assert(typeof MockDocument === 'function') | ||
assert(typeof BUILD !== 'undefined') | ||
assert(typeof createNodeLogger === 'function') | ||
assert(typeof MockDocument === 'function'); | ||
assert(typeof BUILD !== 'undefined'); | ||
assert(typeof createNodeLogger === 'function'); | ||
assert(typeof createTesting === 'function'); | ||
|
||
console.log(`🎉 All ESM imports successfully resolved!`); | ||
console.log('✅ passed!\n'); |