From 211f7af4973bf6cc38056ec057ff8d1772f20c47 Mon Sep 17 00:00:00 2001 From: cris lombardo Date: Tue, 23 Jan 2024 13:52:17 -0500 Subject: [PATCH] fix: update cypress version MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit remove error: ``` TSError: тип Unable to compile TypeScript: error TS5095: Option 'bundler' can only be used when 'module' is set to 'es2015' or later. ``` --- README.md | 11 ++++++----- pnpm-lock.yaml | 13 ++++++------- tsconfig.json | 6 ------ 3 files changed, 12 insertions(+), 18 deletions(-) diff --git a/README.md b/README.md index bef5ffc..b909354 100644 --- a/README.md +++ b/README.md @@ -82,11 +82,12 @@ This project is using [conventional commits](https://www.conventionalcommits.org // TODO [cypress](https://www.cypress.io/) -- **Be aware** +> [!WARNING] +> Cypress does not officially support Next v14. If you enncounter any errors or issues please report them [here](https://github.com/Slick-Telemetry/frontend/issues) - - Cypress uses a different ts `moduleResolution: node` from Next `bundler`, as a result of the difference the imports don't get formated properly - - Appending to top of your test file is the current fix `/* eslint-disable simple-import-sort/imports */` - - [Read More](https://github.com/cypress-io/cypress/issues/26308) +- **Background** + + - Cypress uses chai based assertions - **Running Cypress** @@ -98,4 +99,4 @@ This project is using [conventional commits](https://www.conventionalcommits.org ## Resources -Key tools in use: `daisy-ui`, `tailwindcss`, `react`, `nextjs`, `pnpm` +Key tools in use: `daisy-ui`, `tailwindcss`, `react`, `nextjs`, `pnpm`, `cypress` diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a705434..322af84 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -63,7 +63,7 @@ devDependencies: version: 10.4.16(postcss@8.4.32) cypress: specifier: latest - version: 13.6.2 + version: 13.6.3 daisyui: specifier: latest version: 4.4.24(postcss@8.4.32) @@ -790,8 +790,8 @@ packages: undici-types: 5.26.5 dev: true - /@types/node@20.10.8: - resolution: {integrity: sha512-f8nQs3cLxbAFc00vEU59yf9UyGUftkPaLGfvbVOIDdx2i1b8epBqj2aNGyP19fiyXWvlmZ7qC1XLjAzw/OKIeA==} + /@types/node@20.11.5: + resolution: {integrity: sha512-g557vgQjUUfN76MZAN/dt1z3dzcUsimuysco0KeluHgrPdJXkP/XdAURgyO2W9fZWHRtRBiVKzKn8vyOAwlG+w==} requiresBuild: true dependencies: undici-types: 5.26.5 @@ -837,7 +837,7 @@ packages: resolution: {integrity: sha512-oJoftv0LSuaDZE3Le4DbKX+KS9G36NzOeSap90UIK0yMA/NhKJhqlSGtNDORNRaIbQfzjXDrQa0ytJ6mNRGz/Q==} requiresBuild: true dependencies: - '@types/node': 20.10.8 + '@types/node': 20.11.5 dev: true optional: true @@ -1957,15 +1957,14 @@ packages: engines: {node: ^12.20.0 || ^14.13.1 || >=16.0.0} dev: true - /cypress@13.6.2: - resolution: {integrity: sha512-TW3bGdPU4BrfvMQYv1z3oMqj71YI4AlgJgnrycicmPZAXtvywVFZW9DAToshO65D97rCWfG/kqMFsYB6Kp91gQ==} + /cypress@13.6.3: + resolution: {integrity: sha512-d/pZvgwjAyZsoyJ3FOsJT5lDsqnxQ/clMqnNc++rkHjbkkiF2h9s0JsZSyyH4QXhVFW3zPFg82jD25roFLOdZA==} engines: {node: ^16.0.0 || ^18.0.0 || >=20.0.0} hasBin: true requiresBuild: true dependencies: '@cypress/request': 3.0.1 '@cypress/xvfb': 1.2.4(supports-color@8.1.1) - '@types/node': 18.19.3 '@types/sinonjs__fake-timers': 8.1.1 '@types/sizzle': 2.3.8 arch: 2.2.0 diff --git a/tsconfig.json b/tsconfig.json index c6cb290..e59724b 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -1,10 +1,4 @@ { - "ts-node": { - "compilerOptions": { - "module": "es2015", - "moduleResolution": "node" - } - }, "compilerOptions": { "target": "es5", "lib": ["dom", "dom.iterable", "esnext"],