Closed
Description
Current behavior
After scaffolding Angular 19 with @cypress/schematic, then running Cypress with npx cypress run
the following warning is output:
Missing baseUrl in compilerOptions. tsconfig-paths will be skipped
Desired behavior
@cypress/schematic should set up a project so that no warning is produced when running Cypress.
Test code to reproduce
Set up project with:
npm install -g @angular/cli@19
ng new angular-app # select CSS, no server-side rendering
cd angular-app
ng add @cypress/schematic --e2e --component
this is available in https://github.com/MikeMcC399/cypress-test-tiny/tree/31433-angular-19/angular-app:
git clone --branch 31433-angular-19 https://github.com/MikeMcC399/cypress-test-tiny
cd cypress-test-tiny
cd angular-app
npm ci
npm start
then, in a separate terminal window execute:
export DEBUG=cypress:server:ts-node
npx cypress run
Cypress Version
First reported on Cypress: 14.2.1
Also reproducible with: 14.3.0
@cypress/[email protected]
Node version
v22.14.0
LTS
Operating System
Ubuntu 24.04.2
LTS
Debug Logs
$ export DEBUG=cypress:server:ts-node
npx cypress run
DevTools listening on ws://127.0.0.1:37085/devtools/browser/cfaa16fe-e8e8-4590-bde7-5792f6ede944
cypress:server:ts-node projectRoot path: /tmp/tmp.uxYqRyYdns/cypress-test-tiny/angular-app +0ms
cypress:server:ts-node registeredFile: /tmp/tmp.uxYqRyYdns/cypress-test-tiny/angular-app/cypress.config.ts +1ms
cypress:server:ts-node typescript path: /tmp/tmp.uxYqRyYdns/cypress-test-tiny/angular-app/node_modules/typescript/lib/typescript.js +0ms
cypress:server:ts-node registering project TS with options { compiler: '/tmp/tmp.uxYqRyYdns/cypress-test-tiny/angular-app/node_modules/typescript/lib/typescript.js', compilerOptions: { module: 'commonjs', moduleResolution: 'node', preserveValueImports: false }, ignore: [ '(?:^|/)node_modules/', '/packages/telemetry/dist/span-exporters/ipc-span-exporter', '/packages/telemetry/dist/span-exporters/console-trace-link-exporter', '/packages/telemetry/dist/processors/on-start-span-processor' ], dir: '/tmp/tmp.uxYqRyYdns/cypress-test-tiny/angular-app', transpileOnly: true } +241ms
Missing baseUrl in compilerOptions. tsconfig-paths will be skipped
====================================================================================================
(Run Starting)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Cypress: 14.2.1 │
│ Browser: Electron 130 (headless) │
│ Node Version: v22.14.0 (/home/mike/n/bin/node) │
│ Specs: 1 found (spec.cy.ts) │
│ Searched: cypress/e2e/**/*.cy.{js,jsx,ts,tsx} │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
────────────────────────────────────────────────────────────────────────────────────────────────────
Running: spec.cy.ts (1 of 1)
My First Test
✓ Visits the initial project page (498ms)
1 passing (541ms)
(Results)
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ Tests: 1 │
│ Passing: 1 │
│ Failing: 0 │
│ Pending: 0 │
│ Skipped: 0 │
│ Screenshots: 0 │
│ Video: false │
│ Duration: 0 seconds │
│ Spec Ran: spec.cy.ts │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
====================================================================================================
(Run Finished)
Spec Tests Passing Failing Pending Skipped
┌────────────────────────────────────────────────────────────────────────────────────────────────┐
│ ✔ spec.cy.ts 541ms 1 1 - - - │
└────────────────────────────────────────────────────────────────────────────────────────────────┘
✔ All specs passed! 541ms 1 1 - - -
Other
Metadata
Metadata
Assignees
Labels
No labels