File tree Expand file tree Collapse file tree 7 files changed +2300
-0
lines changed
Expand file tree Collapse file tree 7 files changed +2300
-0
lines changed Original file line number Diff line number Diff line change 1+ node_modules /
2+ output /
3+ settings.json
Original file line number Diff line number Diff line change 1+ Feature ( 'Typescript Example' ) ;
2+
3+ Scenario ( 'test something' , ( I ) => {
4+ I . amOnPage ( '/' )
5+ } ) ;
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 1+ {
2+ "name" : " typescript-boilerplate" ,
3+ "version" : " 1.0.0" ,
4+ "main" : " index.js" ,
5+ "author" : " Vorobeyko <sashavorobey95@gmail.com>" ,
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+ }
Original file line number Diff line number Diff line change 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+ }
Original file line number Diff line number Diff line change 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+ }
You can’t perform that action at this time.
0 commit comments