Using TypeScript aliases in Cypress tests

1 · Gleb Bahmutov · May 9, 2019, 4 a.m.
In this post I will show how you can write end-to-end tests in TypeScript and how to import from test code your application source files using path aliases like this:1import {greeting} from '@app/greeting'instead of brittle relative paths like this1import {greeting} from '../../app/src/greeting'Note: the source code for this blog post is at bahmutov/using-ts-aliases-in-cypress-testsApplicationFor this demo I will use a minimal example: just an HTML page index.html with some TypeScript codeindex....