Skip to content

Commit fca6653

Browse files
committed
Start adding .js to imports
1 parent 0445c6e commit fca6653

File tree

4 files changed

+15
-20
lines changed

4 files changed

+15
-20
lines changed

.mocharc.json

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
{
2-
"require": [
3-
"ts-node/register",
4-
"source-map-support/register",
5-
"./css-modules-hook.cjs",
6-
"global-jsdom/register"
7-
],
2+
"loader": "ts-node/esm",
83
"extension": ["ts", "tsx"],
94
"recursive": true,
105
"timeout": 10000

src/components/app/index.ts

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
export * from './CICommitLink'
2-
export * from './EnvelopesWrapper'
3-
export * from './ExecutionSummary'
4-
export * from './FilteredResults'
5-
export * from './GherkinDocumentList'
6-
export * from './HighLight'
7-
export * from './NoMatchResult'
8-
export * from './QueriesWrapper'
9-
export * from './SearchBar'
10-
export * from './SearchWrapper'
11-
export * from './StatusesSummary'
1+
export * from './CICommitLink.js'
2+
export * from './EnvelopesWrapper.js'
3+
export * from './ExecutionSummary.js'
4+
export * from './FilteredResults.js'
5+
export * from './GherkinDocumentList.js'
6+
export * from './HighLight.js'
7+
export * from './NoMatchResult.js'
8+
export * from './QueriesWrapper.js'
9+
export * from './SearchBar.js'
10+
export * from './SearchWrapper.js'
11+
export * from './StatusesSummary.js'

test/HighlightTest.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import assert from 'assert'
22
import ReactDOM from 'react-dom'
33
import React from 'react'
4-
import { HighLight } from '../src/components/app'
4+
import { HighLight } from '../src/components/app/index.js'
55
import { JSDOM } from 'jsdom'
6-
import SearchQueryContext, { SearchQueryCtx } from '../src/SearchQueryContext'
6+
import SearchQueryContext, { SearchQueryCtx } from '../src/SearchQueryContext.js'
77

88
describe('HighLight', () => {
99
function renderHighlight(text: string, query: string, markdown: boolean): Document {

test/isTagExpressionTest.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import assert from 'assert'
2-
import isTagExpression from '../src/isTagExpression'
2+
import isTagExpression from '../src/isTagExpression.js'
33

44
describe('isTagExpression', () => {
55
it('returns false with empty string', () => {

0 commit comments

Comments
 (0)