example with typescript build failing
This commit is contained in:
parent
4b630ab8c8
commit
2d76541142
1
packages/playwright-test-types/.gitignore
vendored
Normal file
1
packages/playwright-test-types/.gitignore
vendored
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
node_modules/**
|
||||||
13
packages/playwright-test-types/package.json
Normal file
13
packages/playwright-test-types/package.json
Normal file
|
|
@ -0,0 +1,13 @@
|
||||||
|
{
|
||||||
|
"private": true,
|
||||||
|
"name": "playwright-test-types",
|
||||||
|
"version": "0.0.0",
|
||||||
|
"description": "Check types",
|
||||||
|
"main": "index.js",
|
||||||
|
"scripts": {
|
||||||
|
"tsc": "tsc -p ."
|
||||||
|
},
|
||||||
|
"dependencies": {
|
||||||
|
"playwright-core": "^0.9.23"
|
||||||
|
}
|
||||||
|
}
|
||||||
4
packages/playwright-test-types/src/index.ts
Normal file
4
packages/playwright-test-types/src/index.ts
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
import assert from "assert";
|
||||||
|
import playwright from "playwright-core";
|
||||||
|
|
||||||
|
assert(playwright.devices["iPhone 7"]);
|
||||||
15
packages/playwright-test-types/tsconfig.json
Normal file
15
packages/playwright-test-types/tsconfig.json
Normal file
|
|
@ -0,0 +1,15 @@
|
||||||
|
{
|
||||||
|
"compilerOptions": {
|
||||||
|
"target": "ESNext",
|
||||||
|
"module": "commonjs",
|
||||||
|
"lib": ["esnext", "dom"],
|
||||||
|
"sourceMap": true,
|
||||||
|
"rootDir": "./src",
|
||||||
|
"outDir": "./lib",
|
||||||
|
"strict": true,
|
||||||
|
"declaration": true
|
||||||
|
},
|
||||||
|
"compileOnSave": true,
|
||||||
|
"include": ["src/**/*.ts"],
|
||||||
|
"exclude": ["node_modules"]
|
||||||
|
}
|
||||||
Loading…
Reference in a new issue