elukoyanov / codecept-typescript-example Goto Github PK
View Code? Open in Web Editor NEWExample of codeceptjs using typescript.
License: MIT License
Example of codeceptjs using typescript.
License: MIT License
Windows OS could not run "test:e2e": "TS_NODE_PROJECT='./src/specs/e2e/tsconfig.json' codeceptjs run"
command.
TS_NODE_PROJECT='./src/specs/e2e/tsconfig.json'
is a linux way to set up environment variables.
Windows has set TS_NODE_PROJECT './src/specs/e2e/tsconfig.json'
style.
How should the steps_file.js be written to work as ts file?
Thanks
Currently ts-node
package is used to run tests.
Maybe, using tsc
directly will be interested for someone to avoid unnecessary packages (and their possible bugs)
tsc
compiler without ts-node
For stable testing should be created a simple app.
Instead of using github in tests.
Create an CI for example, which start app and runs tests.
Currently, project is works and show a simple example of project structure and tests.
But, some JS/TS/Codecept newbies don't know what to pay attention.
when we run command : npx codeceptjs def
1 const { I } = inject();
~
'I' was also declared here.
at createTSError (.../node_modules/ts-node/src/index.ts:859:12)
at reportTSError (.../node_modules/ts-node/src/index.ts:863:19)
at getOutput (.../node_modules/ts-node/src/index.ts:1077:36)
at Object.compile (.../node_modules/ts-node/src/index.ts:1433:41)
at Module.m._compile (.../node_modules/ts-node/src/index.ts:1617:30)
at Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Object.require.extensions. [as .ts] (.../node_modules/ts-node/src/index.ts:1621:12)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Module.require (node:internal/modules/cjs/loader:1057:19)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.