Eterna standard Cypress setup and utilities
First install this library:
npm install -D @eternagame/cypress-utils
If setting up component testing, use the following in your cypress.config.ts
:
import { getCTConfig } from '@eternagame/cypress-utils';
export default getCTConfig();
or using commonjs
const { getCTConfig } = require('@eternagame/cypress-utils');
export default getCTConfig();
If setting up e2e testing in a dedicated package, use the following in your cypress.config.ts
:
import { getE2EPackageConfig } from '@eternagame/cypress-utils';
export default getE2EPackageConfig();
or using commonjs
const { getE2EPackageConfig } = require('@eternagame/cypress-utils');
export default getE2EPackageConfig();