diff --git a/.github/workflows/e2e.run.tests.yml b/.github/workflows/e2e.run.tests.yml index 74cf937..5058651 100644 --- a/.github/workflows/e2e.run.tests.yml +++ b/.github/workflows/e2e.run.tests.yml @@ -7,13 +7,13 @@ jobs: name: Run all E2E tests runs-on: ubuntu-latest steps: + - name: Checkout + uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - name: Set Node version uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0 with: - node-version: '>=22.15.0' - - - name: Checkout - uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + node-version-file: '.tool-versions' - name: E2E - Run all tests id: e2e-run diff --git a/.github/workflows/e2e.test.build.docs.yml b/.github/workflows/e2e.test.build.docs.yml index 2f84bb2..653887a 100644 --- a/.github/workflows/e2e.test.build.docs.yml +++ b/.github/workflows/e2e.test.build.docs.yml @@ -25,13 +25,13 @@ jobs: needs: files-changed runs-on: ubuntu-latest steps: - - name: Set Node version - uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0 - with: - node-version: '>=22.15.0' - - name: Checkout code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - name: Set Node version + uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0 + with: + node-version-file: '.tool-versions' + - name: E2E Testing | Build Docs run: npm install && npm run docs:build diff --git a/.github/workflows/e2e.test.lint.yml b/.github/workflows/e2e.test.lint.yml index 6a508cd..0dab8c8 100644 --- a/.github/workflows/e2e.test.lint.yml +++ b/.github/workflows/e2e.test.lint.yml @@ -25,13 +25,13 @@ jobs: needs: files-changed runs-on: ubuntu-latest steps: - - name: Set Node version - uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0 - with: - node-version: '>=22.15.0' - - name: Checkout code uses: actions/checkout@1af3b93b6815bc44a9784bd300feb67ff0d1eeb3 # v6.0.0 + - name: Set Node version + uses: actions/setup-node@633bb92bc0aabcae06e8ea93b85aecddd374c402 # v6.0.0 + with: + node-version-file: '.tool-versions' + - name: E2E files | Lint run: npm install && npm run test:lint:eslint diff --git a/.tool-versions b/.tool-versions new file mode 100644 index 0000000..6264dcc --- /dev/null +++ b/.tool-versions @@ -0,0 +1 @@ +nodejs 24.11.1 \ No newline at end of file diff --git a/cypress/e2e/steps/login.ts b/cypress/e2e/steps/login.ts index fd4cffd..c8a70c6 100644 --- a/cypress/e2e/steps/login.ts +++ b/cypress/e2e/steps/login.ts @@ -1,5 +1,3 @@ -/* eslint-disable @typescript-eslint/no-unsafe-call */ -/* eslint-disable @typescript-eslint/no-unsafe-member-access */ /* eslint-disable import/no-relative-parent-imports */ import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor' diff --git a/cypress/tsconfig.json b/cypress/tsconfig.json index b24df79..a757e19 100644 --- a/cypress/tsconfig.json +++ b/cypress/tsconfig.json @@ -1,8 +1,14 @@ { "compilerOptions": { - "target": "es5", - "lib": ["es5", "dom"], + "target": "ES2022", + "lib": ["ES2022", "dom"], + "module": "ESNext", + "moduleResolution": "node", + "esModuleInterop": true, + "strict": true, + "skipLibCheck": true, "types": ["cypress", "node"] }, - "include": ["./**/*.ts", ".vuepress/config.ts"] + "include": ["./**/*.ts"], + "exclude": ["node_modules"] } \ No newline at end of file diff --git a/eslint.config.cjs b/eslint.config.cjs index 405acf3..f9e3722 100644 --- a/eslint.config.cjs +++ b/eslint.config.cjs @@ -22,7 +22,7 @@ const compat = new FlatCompat({ module.exports = defineConfig([ { - ignores: ['.gitignore', '.github/', '.vuepress/public/', '**/*md', '**/*.json', '**/build/', 'cypress/reports/', 'cypress/screenshots/', 'LICENSE', 'node_modules/'], + ignores: ['.gitignore', '.github/', '.vuepress/public/', '.vuepress/.temp/', '**/*md', '**/*.json', '**/build/', 'cypress/reports/', 'cypress/screenshots/', 'LICENSE', 'node_modules/'], languageOptions: { globals: { @@ -226,6 +226,7 @@ module.exports = defineConfig([ '.gitignore', '.github/', '.vuepress/public/', + '.vuepress/.temp/', '**/*md', '**/*.json', '**/build/', diff --git a/tsconfig.json b/tsconfig.json index 0a5ad3b..04a5284 100644 --- a/tsconfig.json +++ b/tsconfig.json @@ -4,8 +4,9 @@ "module": "nodenext", "lib": ["ES2022", "dom"], "strict": true, + "skipLibCheck": true, "types": ["cypress", "node"] }, "include": ["**/*.ts", ".vuepress/config.ts"], - "exclude": ["node_modules"] + "exclude": ["node_modules", "cypress"] } \ No newline at end of file