Skip to content

Commit 6053f89

Browse files
committed
Add type: js specification to all .ts files in karma configs
1 parent 3a4645f commit 6053f89

File tree

6 files changed

+21
-22
lines changed

6 files changed

+21
-22
lines changed

test/deployment/amd/karma.conf.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -29,16 +29,17 @@ module.exports = config => {
2929
included: false
3030
},
3131

32-
"test/utils/compare.ts",
33-
"test/deployment/amd/loadGlobals.ts",
32+
{ pattern: "test/utils/compare.ts", type: "js" },
33+
{ pattern: "test/deployment/amd/loadGlobals.ts", type: "js" },
3434

35-
"test/deployment/amd/amd.spec.ts",
35+
{ pattern: "test/deployment/amd/amd.spec.ts", type: "js" },
3636

3737
{
3838
pattern: "test/specs/*.spec.ts",
3939
included: true,
4040
watched: true,
41-
served: true
41+
served: true,
42+
type: "js"
4243
},
4344
{
4445
pattern: "test/**/*.+(svg|png|jpg|jpeg|ttf|txt)",

test/deployment/esm/karma.conf.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,8 @@ module.exports = config => {
1616
"node_modules/html2canvas/dist/html2canvas.js", // load html2canvas globally - can't test dynamic import without symbolic name resolution
1717
"node_modules/dompurify/dist/purify.js",
1818

19-
"test/utils/compare.ts",
20-
"test/deployment/esm/loadGlobals.ts",
19+
{ pattern: "test/utils/compare.ts", type: "js" },
20+
{ pattern: "test/deployment/esm/loadGlobals.ts", type: "js" },
2121

2222
{
2323
pattern: "test/deployment/esm/asyncImportHelper.ts",
@@ -26,13 +26,14 @@ module.exports = config => {
2626
type: "module"
2727
},
2828

29-
"test/deployment/esm/esm.spec.ts",
29+
{ pattern: "test/deployment/esm/esm.spec.ts", type: "js" },
3030

3131
{
3232
pattern: "test/specs/*.spec.ts",
3333
included: true,
3434
watched: true,
35-
served: true
35+
served: true,
36+
type: "js"
3637
},
3738
{
3839
pattern: "test/**/*.+(svg|png|jpg|jpeg|ttf|txt)",

test/deployment/globals/karma.conf.ts

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,16 +17,17 @@ module.exports = config => {
1717
"node_modules/html2canvas/dist/html2canvas.js",
1818
"node_modules/dompurify/dist/purify.js",
1919

20-
"test/deployment/globals/loadGlobals.ts",
21-
"test/utils/compare.ts",
20+
{ pattern: "test/deployment/globals/loadGlobals.ts", type: "js" },
21+
{ pattern: "test/utils/compare.ts", type: "js" },
2222

23-
"test/deployment/globals/globals.spec.ts",
23+
{ pattern: "test/deployment/globals/globals.spec.ts", type: "js" },
2424

2525
{
2626
pattern: "test/specs/*.spec.ts",
2727
included: true,
2828
watched: true,
29-
served: true
29+
served: true,
30+
type: "js"
3031
},
3132
{
3233
pattern: "test/**/*.+(svg|png|jpg|jpeg|ttf|txt)",

test/deployment/typescript/karma.conf.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ module.exports = config => {
1515

1616
// list of files / patterns to load in the browser
1717
files: [
18-
"test/utils/compare.ts",
18+
{ pattern: "test/utils/compare.ts", type: "js" },
1919
{
2020
pattern: "test/deployment/typescript/*.spec.ts",
2121
type: "module"

test/deployment/webworker/karma.conf.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,14 @@ module.exports = config => {
2020
included: false
2121
},
2222

23-
"test/utils/compare.ts",
23+
{ pattern: "test/utils/compare.ts", type: "js" },
2424

2525
{
2626
pattern: "test/deployment/webworker/*.spec.ts",
2727
included: true,
2828
watched: true,
29-
served: true
29+
served: true,
30+
type: "js"
3031
},
3132
{
3233
pattern: "test/**/*.+(svg|png|jpg|jpeg|ttf|txt)",

test/unit/karma.conf.ts

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ module.exports = config => {
88

99
basePath: "../../",
1010
files: [
11-
"test/unit/loadGlobals.ts",
11+
{ pattern: "test/unit/loadGlobals.ts", type: "js" },
1212
{
1313
pattern: "test/unit/asyncImportHelper.ts",
1414
included: true,
@@ -20,17 +20,12 @@ module.exports = config => {
2020
"node_modules/canvg/lib/umd.js",
2121
"node_modules/html2canvas/dist/html2canvas.js",
2222
"node_modules/dompurify/dist/purify.js",
23-
"test/utils/compare.ts",
23+
{ pattern: "test/utils/compare.ts", type: "js" },
2424
{
2525
pattern: "test/specs/*.spec.ts",
2626
included: true,
2727
type: "js"
2828
},
29-
{
30-
pattern: "test/specs/*.spec.mjs",
31-
included: true,
32-
type: "module"
33-
},
3429
{
3530
pattern: "test/reference/**/*.*",
3631
included: false,

0 commit comments

Comments
 (0)