Skip to content

Commit a471f37

Browse files
committed
init commit
0 parents  commit a471f37

7 files changed

+2300
-0
lines changed

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
node_modules/
2+
output/
3+
settings.json

Typescript_Example_test.ts

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
Feature('Typescript Example');
2+
3+
Scenario('test something', (I) => {
4+
I.amOnPage('/')
5+
});

codecept.conf.js

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
require('ts-node/register')
2+
const { setHeadlessWhen } = require('@codeceptjs/configure');
3+
4+
// turn on headless mode when running with HEADLESS=true environment variable
5+
// HEADLESS=true npx codecept run
6+
setHeadlessWhen(process.env.HEADLESS);
7+
8+
exports.config = {
9+
tests: './*_test.ts',
10+
output: './output',
11+
helpers: {
12+
Puppeteer: {
13+
url: 'http://tinkoff.ru',
14+
show: false,
15+
windowSize: '1200x900'
16+
}
17+
},
18+
bootstrap: null,
19+
mocha: {},
20+
name: 'typescript-boilerplate',
21+
plugins: {
22+
retryFailedStep: {
23+
enabled: true
24+
},
25+
screenshotOnFail: {
26+
enabled: true
27+
}
28+
}
29+
}

package.json

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"name": "typescript-boilerplate",
3+
"version": "1.0.0",
4+
"main": "index.js",
5+
"author": "Vorobeyko <[email protected]>",
6+
"license": "MIT",
7+
"scripts": {
8+
"run:tests": "codeceptjs run"
9+
},
10+
"dependencies": {
11+
"codeceptjs": "^2.6.3",
12+
"puppeteer": "^3.0.2",
13+
"ts-node": "^8.10.1",
14+
"typescript": "^3.8.3"
15+
}
16+
}

steps.d.ts

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/// <reference types='codeceptjs' />
2+
3+
4+
declare namespace CodeceptJS {
5+
interface SupportObject { I: CodeceptJS.I }
6+
interface CallbackOrder { [0]: CodeceptJS.I }
7+
interface Methods extends CodeceptJS.Puppeteer {}
8+
interface I extends WithTranslation<Methods> {}
9+
namespace Translation {
10+
interface Actions {}
11+
}
12+
}

tsconfig.json

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
{
2+
"ts-node": {
3+
"files": true
4+
},
5+
"compilerOptions": {
6+
"allowSyntheticDefaultImports": true,
7+
"esModuleInterop": true,
8+
"target": "ES2018",
9+
"lib": ["ES2018", "dom"],
10+
"rootDir": "./",
11+
"baseUrl": "./",
12+
"moduleResolution": "Node",
13+
"module": "CommonJS",
14+
"noUnusedLocals": true,
15+
"noUnusedParameters": true,
16+
"sourceMap": true,
17+
"jsx": "react",
18+
"declaration": true,
19+
"resolveJsonModule": true,
20+
"strictNullChecks": true,
21+
"importHelpers": true,
22+
"noImplicitAny": true
23+
},
24+
}

0 commit comments

Comments
 (0)