mirror of
https://github.com/cypress-io/cypress.git
synced 2026-04-26 00:50:41 -05:00
feat: Error standardization (#20323)
* refactor: reworking client-side error shape * feat: add the CodeFrame to baseerror * consolidate baseError handling, type fixes * Fix UNIFY-1164 w/ test cleanup to avoid intercepting * fix types, cleanup based on review / Brian * fix: imports / types / tests * cleanup tests, fix TSError location, add reinitializeCypress mutation * fix: show correct stack trace file name (#20410) * Improve comments for regexes / TSError capture * feat: Add codeframe to error, address PR comments * update snapshot * change codeframe impl, per Brian's request * Attempt to fix test flake Co-authored-by: ElevateBart <ledouxb@gmail.com> Co-authored-by: Alejandro Estrada <estrada9166@hotmail.com>
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import chokidar from 'chokidar'
|
||||
import path from 'path'
|
||||
import fs from 'fs-extra'
|
||||
import _ from 'lodash'
|
||||
|
||||
import { monorepoPaths } from '../monorepoPaths'
|
||||
|
||||
@@ -43,7 +44,7 @@ ${allDirs
|
||||
|
||||
export async function e2eTestScaffoldWatch () {
|
||||
const fixtureWatcher = chokidar.watch(PROJECT_FIXTURE_DIRECTORY, {
|
||||
cwd: monorepoPaths.pkgServer,
|
||||
cwd: monorepoPaths.root,
|
||||
// ignoreInitial: true,
|
||||
depth: 0,
|
||||
})
|
||||
@@ -52,9 +53,9 @@ export async function e2eTestScaffoldWatch () {
|
||||
e2eTestScaffold()
|
||||
})
|
||||
|
||||
fixtureWatcher.on('addDir', () => {
|
||||
fixtureWatcher.on('addDir', _.debounce(() => {
|
||||
e2eTestScaffold()
|
||||
})
|
||||
}))
|
||||
|
||||
await e2eTestScaffold()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user