Skip to content

Commit

Permalink
fix: fix config path and writeFile arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
haoqunjiang committed Oct 20, 2023
1 parent e106845 commit 3f3036f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/quasar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,13 @@ export async function test(options: RunOptions) {
// Need to skip QSelect tests until https://github.com/quasarframework/quasar-testing/issues/343 is resolved
beforeTest: async () => {
const dir = path.resolve(options.workspace, 'quasar')
const cypressConfigPath = path.resolve(dir, 'ui/dev/cypress.config.js')
const cypressConfigPath = path.resolve(dir, 'ui/dev/cypress.config.cjs')
const cypressConfigFile = await fs.promises.readFile(
cypressConfigPath,
'utf-8',
)
await fs.promises.writeFile(
cypressConfigPath,
cypressConfigFile +
`\nmodule.exports.component.excludeSpecPattern = '../src/components/**/QSelect.cy.js'\n`,
'utf-8',
Expand Down

0 comments on commit 3f3036f

Please sign in to comment.