Skip to content

Commit 6612316

Browse files
committed
fix(e2e): build
1 parent 0f7d433 commit 6612316

File tree

5 files changed

+6367
-11603
lines changed

5 files changed

+6367
-11603
lines changed

packages/e2e/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ npx lit-e2e
4242
# Equivalent manual invocation
4343
npx jest \
4444
--config node_modules/@lit-protocol/e2e/dist/jest.e2e.package.config.cjs \
45-
node_modules/@lit-protocol/e2e/dist/specs/e2e.spec.js
45+
node_modules/@lit-protocol/e2e/dist/specs/e2e.spec.ts
4646
```
4747

4848
Both commands honour additional Jest flags (e.g. `--runInBand`, `--verbose`), so you can tailor runs to your infrastructure.

packages/e2e/jest.e2e.package.config.cjs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const config = {
99
'^.+\\.(ts|tsx|js|mjs)$': 'babel-jest',
1010
},
1111
transformIgnorePatterns: [],
12-
testMatch: ['**/node_modules/@lit-protocol/e2e/dist/specs/**/*.spec.js'],
12+
testMatch: ['**/node_modules/@lit-protocol/e2e/dist/specs/**/*.spec.(ts|js)'],
1313
moduleFileExtensions: ['ts', 'tsx', 'js', 'mjs', 'cjs', 'json'],
1414
};
1515

packages/e2e/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@
1515
"require": "./dist/index.js"
1616
},
1717
"./specs/e2e": {
18-
"import": "./dist/specs/e2e.spec.js",
19-
"require": "./dist/specs/e2e.spec.js"
18+
"import": "./dist/specs/e2e.spec.ts",
19+
"require": "./dist/specs/e2e.spec.ts"
2020
},
2121
"./jest-config": {
2222
"import": "./dist/jest.e2e.package.config.cjs",

packages/e2e/project.json

Lines changed: 5 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@
1515
"packages/e2e/*.md",
1616
"packages/e2e/example.js",
1717
"packages/e2e/jest.e2e.package.config.cjs",
18+
{
19+
"input": "packages/e2e/src",
20+
"glob": "e2e.spec.ts",
21+
"output": "specs"
22+
},
1823
{
1924
"input": "packages/e2e/bin",
2025
"glob": "**/*.cjs",
@@ -23,21 +28,6 @@
2328
],
2429
"updateBuildableProjectDepsInPackageJson": true
2530
},
26-
"dependsOn": [
27-
"^build",
28-
{
29-
"target": "build-specs"
30-
}
31-
]
32-
},
33-
"build-specs": {
34-
"executor": "@nx/js:tsc",
35-
"outputs": ["dist/packages/e2e/specs"],
36-
"options": {
37-
"outputPath": "dist/packages/e2e/specs",
38-
"main": "packages/e2e/src/e2e.spec.ts",
39-
"tsConfig": "packages/e2e/tsconfig.spec.build.json"
40-
},
4131
"dependsOn": [
4232
"^build"
4333
]

0 commit comments

Comments
 (0)