To use EasyTest with TypeScript
you need to install tsx
package.
You must change a script to run tests in package.json
:
cross-env
- is a package that allows you to set environment variables in a cross-platform way.
Commands to set environment variables to support TypeScript
powershell
linux, macos
cmd
Now you can write tests in TypeScript
and tests the TypeScript code.