build(deps-dev): bump the cypress group across 1 directory with 3 updates (#9058)

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
This commit is contained in:
dependabot[bot] 2026-01-18 12:29:03 +01:00 committed by GitHub
parent 855a049f90
commit fa71b0e189
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
5 changed files with 3657 additions and 3614 deletions

View File

@ -1,36 +1,49 @@
/* eslint-disable @typescript-eslint/no-unsafe-member-access */
/* eslint-disable @typescript-eslint/no-unsafe-assignment */
/* eslint-disable @typescript-eslint/no-var-requires */
/* eslint-disable n/no-missing-require */
/* eslint-disable n/global-require */
// NOTE: We cannot use `fs` here to clean up the code. Cypress breaks on any npm
// module that is not browser-compatible. Node's `fs` module is server-side only
// eslint-disable-next-line @typescript-eslint/no-explicit-any
declare let Cypress: any | undefined
//
// We use static imports instead of dynamic require() to ensure compatibility
// with both Node.js and Webpack (used by Cypress cucumber preprocessor).
import Badge from './Badge'
import Category from './Category'
import Comment from './Comment'
import Donations from './Donations'
import EmailAddress from './EmailAddress'
import File from './File'
import Group from './Group'
import Image from './Image'
import InviteCode from './InviteCode'
import Location from './Location'
import Migration from './Migration'
import Post from './Post'
import Report from './Report'
import SocialMedia from './SocialMedia'
import Tag from './Tag'
import UnverifiedEmailAddress from './UnverifiedEmailAddress'
import User from './User'
import type Neode from 'neode'
// Type assertion needed because TypeScript infers literal types from the model
// objects (e.g., type: 'string' as literal), but Neode expects the broader
// SchemaObject type with PropertyTypes union. The Neode type definitions are
// incomplete/incorrect, so we use double assertion to bypass the check.
export default {
File: typeof Cypress !== 'undefined' ? require('./File') : require('./File').default,
Image: typeof Cypress !== 'undefined' ? require('./Image') : require('./Image').default,
Badge: typeof Cypress !== 'undefined' ? require('./Badge') : require('./Badge').default,
User: typeof Cypress !== 'undefined' ? require('./User') : require('./User').default,
Group: typeof Cypress !== 'undefined' ? require('./Group') : require('./Group').default,
EmailAddress:
typeof Cypress !== 'undefined' ? require('./EmailAddress') : require('./EmailAddress').default,
UnverifiedEmailAddress:
typeof Cypress !== 'undefined'
? require('./UnverifiedEmailAddress')
: require('./UnverifiedEmailAddress').default,
SocialMedia:
typeof Cypress !== 'undefined' ? require('./SocialMedia') : require('./SocialMedia').default,
Post: typeof Cypress !== 'undefined' ? require('./Post') : require('./Post').default,
Comment: typeof Cypress !== 'undefined' ? require('./Comment') : require('./Comment').default,
Category: typeof Cypress !== 'undefined' ? require('./Category') : require('./Category').default,
Tag: typeof Cypress !== 'undefined' ? require('./Tag') : require('./Tag').default,
Location: typeof Cypress !== 'undefined' ? require('./Location') : require('./Location').default,
Donations:
typeof Cypress !== 'undefined' ? require('./Donations') : require('./Donations').default,
Report: typeof Cypress !== 'undefined' ? require('./Report') : require('./Report').default,
Migration:
typeof Cypress !== 'undefined' ? require('./Migration') : require('./Migration').default,
InviteCode:
typeof Cypress !== 'undefined' ? require('./InviteCode') : require('./InviteCode').default,
}
Badge,
Category,
Comment,
Donations,
EmailAddress,
File,
Group,
Image,
InviteCode,
Location,
Migration,
Post,
Report,
SocialMedia,
Tag,
UnverifiedEmailAddress,
User,
} as unknown as Record<string, Neode.SchemaObject>

View File

@ -1,22 +1,55 @@
const dotenv = require('dotenv')
const { defineConfig } = require('cypress');
const browserify = require('@cypress/browserify-preprocessor');
const webpackPreprocessor = require('@cypress/webpack-preprocessor');
const {
addCucumberPreprocessorPlugin,
} = require('@badeball/cypress-cucumber-preprocessor');
const {
preprendTransformerToOptions,
} = require('@badeball/cypress-cucumber-preprocessor/browserify');
const NodePolyfillPlugin = require('node-polyfill-webpack-plugin');
const webpack = require('webpack');
// Test persistent(between commands) store
const testStore = {}
async function setupNodeEvents(on, config) {
// This is required for the preprocessor to be able to generate JSON reports after each run, and more
await addCucumberPreprocessorPlugin(on, config);
on(
'file:preprocessor',
browserify(preprendTransformerToOptions(config, browserify.defaultOptions)),
webpackPreprocessor({
webpackOptions: {
mode: 'development',
devtool: 'source-map',
resolve: {
extensions: ['.js', '.json'],
fallback: {
fs: false,
net: false,
tls: false,
},
},
module: {
rules: [
{
test: /\.feature$/,
use: [
{
loader: '@badeball/cypress-cucumber-preprocessor/webpack',
options: config,
},
],
},
],
},
plugins: [
new NodePolyfillPlugin(),
new webpack.ProvidePlugin({
process: 'process/browser',
Buffer: ['buffer', 'Buffer'],
}),
],
},
}),
);
on('task', {

4646
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -36,17 +36,20 @@
"@babel/core": "^7.28.5",
"@babel/preset-env": "^7.28.5",
"@babel/register": "^7.28.3",
"@badeball/cypress-cucumber-preprocessor": "^23.2.1",
"@cucumber/cucumber": "12.2.0",
"@cypress/browserify-preprocessor": "^3.0.2",
"@badeball/cypress-cucumber-preprocessor": "^24.0.0",
"@cucumber/cucumber": "12.5.0",
"@cypress/webpack-preprocessor": "^7.0.2",
"auto-changelog": "^2.5.0",
"cypress": "^15.6.0",
"cypress": "^15.9.0",
"cypress-network-idle": "^1.15.0",
"date-fns": "^3.6.0",
"dotenv": "^17.2.3",
"graphql-request": "^2.0.0",
"mock-socket": "^9.0.3",
"multiple-cucumber-html-reporter": "^3.9.3"
"multiple-cucumber-html-reporter": "^3.9.3",
"node-polyfill-webpack-plugin": "^4.1.0",
"sass-embedded": "^1.97.2",
"webpack": "^5.104.1"
},
"optionalDependencies": {
"@vuepress/bundler-vite": "^2.0.0-rc.18",

2490
yarn.lock

File diff suppressed because it is too large Load Diff