mirror of
https://github.com/IT4Change/boilerplate-e2e-cypress-cucumber.git
synced 2025-12-12 20:55:48 +00:00
Merge pull request #322 from IT4Change/refactor-types-etc
refactor(other): refactor types etc
This commit is contained in:
commit
2b484289ef
8
.github/workflows/e2e.run.tests.yml
vendored
8
.github/workflows/e2e.run.tests.yml
vendored
@ -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
|
||||
|
||||
10
.github/workflows/e2e.test.build.docs.yml
vendored
10
.github/workflows/e2e.test.build.docs.yml
vendored
@ -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
|
||||
|
||||
10
.github/workflows/e2e.test.lint.yml
vendored
10
.github/workflows/e2e.test.lint.yml
vendored
@ -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
|
||||
|
||||
1
.tool-versions
Normal file
1
.tool-versions
Normal file
@ -0,0 +1 @@
|
||||
nodejs 24.11.1
|
||||
@ -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'
|
||||
|
||||
|
||||
@ -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"]
|
||||
}
|
||||
@ -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/',
|
||||
|
||||
@ -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"]
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user