mirror of
https://github.com/IT4Change/boilerplate-e2e-cypress-cucumber.git
synced 2025-12-13 04:55:50 +00:00
Merge pull request #2 from IT4Change/linting
refactor(other): fix linting
This commit is contained in:
commit
0a9ad44a38
@ -1 +1,3 @@
|
|||||||
|
build/
|
||||||
|
cypress/reports/
|
||||||
node_modules/
|
node_modules/
|
||||||
1
.gitignore
vendored
1
.gitignore
vendored
@ -1,4 +1,5 @@
|
|||||||
build/
|
build/
|
||||||
|
cypress/reports/
|
||||||
node_modules/
|
node_modules/
|
||||||
.vuepress/.cache
|
.vuepress/.cache
|
||||||
.vuepress/.temp
|
.vuepress/.temp
|
||||||
|
|||||||
@ -1,41 +1,18 @@
|
|||||||
import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-preprocessor'
|
import { addCucumberPreprocessorPlugin } from '@badeball/cypress-cucumber-preprocessor'
|
||||||
import webpack from '@cypress/webpack-preprocessor'
|
import { createEsbuildPlugin } from '@badeball/cypress-cucumber-preprocessor/esbuild'
|
||||||
|
import createBundler from '@bahmutov/cypress-esbuild-preprocessor'
|
||||||
import { defineConfig } from 'cypress'
|
import { defineConfig } from 'cypress'
|
||||||
|
|
||||||
const setupNodeEvents = async (on: Cypress.PluginEvents, config: Cypress.PluginConfigOptions) => {
|
async function setupNodeEvents(
|
||||||
await addCucumberPreprocessorPlugin(on, config, {
|
on: Cypress.PluginEvents,
|
||||||
omitAfterRunHandler: true,
|
config: Cypress.PluginConfigOptions,
|
||||||
})
|
): Promise<Cypress.PluginConfigOptions> {
|
||||||
|
await addCucumberPreprocessorPlugin(on, config)
|
||||||
|
|
||||||
on(
|
on(
|
||||||
'file:preprocessor',
|
'file:preprocessor',
|
||||||
webpack({
|
createBundler({
|
||||||
webpackOptions: {
|
plugins: [createEsbuildPlugin(config)],
|
||||||
resolve: {
|
|
||||||
extensions: ['.ts', '.js'],
|
|
||||||
},
|
|
||||||
module: {
|
|
||||||
rules: [
|
|
||||||
{
|
|
||||||
test: /\.ts$/,
|
|
||||||
exclude: [/node_modules/],
|
|
||||||
use: [
|
|
||||||
{
|
|
||||||
loader: 'ts-loader',
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
{
|
|
||||||
test: /\.feature$/,
|
|
||||||
use: [
|
|
||||||
{
|
|
||||||
loader: '@badeball/cypress-cucumber-preprocessor/webpack',
|
|
||||||
options: config,
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
],
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}),
|
}),
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
|
/* 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'
|
import { Given, When, Then } from '@badeball/cypress-cucumber-preprocessor'
|
||||||
|
|
||||||
import { loginPage } from '../../pages/LoginPage'
|
import { loginPage } from '../../pages/LoginPage'
|
||||||
|
|||||||
@ -2,12 +2,7 @@
|
|||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"target": "es5",
|
"target": "es5",
|
||||||
"lib": ["es5", "dom"],
|
"lib": ["es5", "dom"],
|
||||||
"types": ["cypress", "node"],
|
"types": ["cypress", "node"]
|
||||||
"paths": {
|
|
||||||
"#pages/*": [
|
|
||||||
"../pages/*.ts"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
"include": ["./**/*.ts"]
|
"include": ["./**/*.ts"]
|
||||||
}
|
}
|
||||||
876
package-lock.json
generated
876
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -33,7 +33,7 @@
|
|||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@badeball/cypress-cucumber-preprocessor": "^20.0.1",
|
"@badeball/cypress-cucumber-preprocessor": "^20.0.1",
|
||||||
"@cypress/webpack-preprocessor": "^6.0.1",
|
"@bahmutov/cypress-esbuild-preprocessor": "^2.2.0",
|
||||||
"@eslint-community/eslint-plugin-eslint-comments": "^4.1.0",
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.1.0",
|
||||||
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
"@typescript-eslint/eslint-plugin": "^7.0.1",
|
||||||
"@typescript-eslint/parser": "^7.0.1",
|
"@typescript-eslint/parser": "^7.0.1",
|
||||||
@ -55,6 +55,7 @@
|
|||||||
"ts-loader": "^9.5.1",
|
"ts-loader": "^9.5.1",
|
||||||
"typescript": "^5.3.3",
|
"typescript": "^5.3.3",
|
||||||
"vuepress": "^2.0.0-rc.0",
|
"vuepress": "^2.0.0-rc.0",
|
||||||
|
"vuepress-plugin-search-pro": "^2.0.0-rc.25",
|
||||||
"vuepress-theme-hope": "^2.0.0-rc.25"
|
"vuepress-theme-hope": "^2.0.0-rc.25"
|
||||||
},
|
},
|
||||||
"cypress-cucumber-preprocessor": {
|
"cypress-cucumber-preprocessor": {
|
||||||
@ -68,9 +69,5 @@
|
|||||||
"enabled": true,
|
"enabled": true,
|
||||||
"output": "cypress/reports/messages/cucumber-messages.ndjson"
|
"output": "cypress/reports/messages/cucumber-messages.ndjson"
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"dependencies": {
|
|
||||||
"@vuepress/theme-default": "^2.0.0-rc.15",
|
|
||||||
"vuepress-plugin-search-pro": "^2.0.0-rc.25"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"compilerOptions": {
|
"compilerOptions": {
|
||||||
"module": "ES2020",
|
"esModuleInterop": true,
|
||||||
"target": "ES2020",
|
"module": "nodenext",
|
||||||
"lib": ["ES2022", "dom"],
|
"lib": ["ES2022", "dom"],
|
||||||
"strict": true,
|
"strict": true,
|
||||||
"types": ["cypress", "node"]
|
"types": ["cypress", "node"]
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user