-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
6fbc833
commit e4d8465
Showing
5 changed files
with
44 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
import {assert} from '@esm-bundle/chai' | ||
import {PlayIcon} from './play-icon.js' | ||
|
||
test('tag is defined', () => { | ||
const el = document.createElement('play-icon') | ||
assert.instanceOf(el, PlayIcon) | ||
}) |
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 |
---|---|---|
@@ -0,0 +1,24 @@ | ||
/** | ||
* Just the configs that can be shared with test:ui. See | ||
* https://modern-web.dev/docs/dev-server/plugins/esbuild. Note that esbuild | ||
* uses `loader` whereas @web/dev-server-esbuild uses `loaders`. | ||
* @arg {string} playVersion | ||
* @arg {string} devvitVersion | ||
* @ret {import('esbuild').BuildOptions} | ||
*/ | ||
export function esbuildConfig(playVersion, devvitVersion) { | ||
return { | ||
define: { | ||
'globalThis.playVersion': `'${playVersion}'`, | ||
'globalThis.devvitVersion': `'${devvitVersion}'` | ||
}, // See defines.d.ts. | ||
loader: { | ||
'.css': 'text', | ||
// Bundle templates for loading in pens and bundle pen worker as text so it | ||
// can be loaded in a worker. | ||
'.example.tsx': 'text', | ||
'.svg': 'text', | ||
'.worker.min.js': 'text' | ||
} | ||
} | ||
} |
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