👩💻 Join our community of thousands of amazing developers!
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....