Skip to content

Commit

Permalink
fix: update cypress version
Browse files Browse the repository at this point in the history
remove error:
```
TSError: ⨯ Unable to compile TypeScript:
error TS5095: Option 'bundler' can only be used when 'module' is set to 'es2015' or later.
```
  • Loading branch information
Lombardoc4 committed Jan 25, 2024
1 parent 2eaf491 commit 211f7af
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 18 deletions.
11 changes: 6 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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**

Expand All @@ -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`
13 changes: 6 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,10 +1,4 @@
{
"ts-node": {
"compilerOptions": {
"module": "es2015",
"moduleResolution": "node"
}
},
"compilerOptions": {
"target": "es5",
"lib": ["dom", "dom.iterable", "esnext"],
Expand Down

0 comments on commit 211f7af

Please sign in to comment.