Skip to content

Commit ea8aa29

Browse files
authored
fix: package build (#1129)
1 parent 128d5b4 commit ea8aa29

File tree

4 files changed

+5
-2
lines changed

4 files changed

+5
-2
lines changed

.github/workflows/ci.yml

+1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- run: npm run typecheck
2121
- run: npm run lint
2222
- run: npm run build:embedded # check that build works
23+
- run: npm run package # check that package build works
2324

2425
unit_tests:
2526
name: Unit Tests

playwright.config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {devices} from '@playwright/test';
44
const baseUrl = process.env.PLAYWRIGHT_BASE_URL;
55

66
const config: PlaywrightTestConfig = {
7-
globalSetup: './src/playwrightSetup.ts',
7+
globalSetup: './tests/playwrightSetup.ts',
88
testDir: 'tests/suites',
99
timeout: 2 * 60 * 1000,
1010
outputDir: './playwright-artifacts/test-results',

src/playwrightSetup.ts renamed to tests/playwrightSetup.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import {chromium} from '@playwright/test';
22

33
import config from '../playwright.config';
4-
import {PageModel} from '../tests/models/PageModel';
4+
5+
import {PageModel} from './models/PageModel';
56

67
async function warmupApplication(appPage: PageModel) {
78
const maxRetries = 5;

tsconfig.package.json

+1
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
"outDir": "dist",
55
"rootDir": "src",
66
"declaration": true,
7+
"sourceMap": true,
78
"noEmit": false,
89
"importHelpers": true
910
},

0 commit comments

Comments
 (0)