Skip to content

Commit 21e83d3

Browse files
committed
import TS files directly in tests
Now we're using the Web Test Runner, it can consume/transpile TS files at runtime, so we can import them without the TS build step.
1 parent 9326e8d commit 21e83d3

File tree

6 files changed

+7
-8
lines changed

6 files changed

+7
-8
lines changed

test/attr.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {expect} from '@open-wc/testing'
2-
import {initializeAttrs, defineObservedAttributes, attr} from '../lib/attr.js'
2+
import {initializeAttrs, defineObservedAttributes, attr} from '../src/attr.js'
33

44
describe('initializeAttrs', () => {
55
class InitializeAttrTestElement extends HTMLElement {}

test/auto-shadow-root.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {expect} from '@open-wc/testing'
22
import {replace, fake} from 'sinon'
3-
import {autoShadowRoot} from '../lib/auto-shadow-root.js'
3+
import {autoShadowRoot} from '../src/auto-shadow-root.js'
44

55
describe('autoShadowRoot', () => {
66
window.customElements.define('autoshadowroot-test-element', class extends HTMLElement {})

test/bind.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import {expect} from '@open-wc/testing'
22
import {replace, fake} from 'sinon'
3-
import {bind, listenForBind} from '../lib/bind.js'
3+
import {bind, listenForBind} from '../src/bind.js'
44

55
describe('bind', () => {
66
window.customElements.define(

test/controller.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import {expect} from '@open-wc/testing'
22
import {replace, fake} from 'sinon'
3-
import {controller} from '../lib/controller.js'
4-
import {attr} from '../lib/attr.js'
3+
import {controller} from '../src/controller.js'
4+
import {attr} from '../src/attr.js'
55

66
describe('controller', () => {
77
let root

test/findtarget.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
import {fake, replace} from 'sinon'
2-
import {expect} from '@open-wc/testing'
3-
import {findTarget, findTargets} from '../lib/findtarget.js'
2+
import {findTarget, findTargets} from '../src/findtarget.js'
43

54
describe('findTarget', () => {
65
window.customElements.define('find-target-test-element', class extends HTMLElement {})

test/register.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import {expect} from '@open-wc/testing'
2-
import {register} from '../lib/register.js'
2+
import {register} from '../src/register.js'
33

44
describe('register', () => {
55
it('registers the class as a custom element, normalising the class name', () => {

0 commit comments

Comments
 (0)