-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(vite-dev-server): only re-run tests when specs deps are updated (#…
…16215) Co-authored-by: Lachlan Miller <[email protected]>
- Loading branch information
1 parent
56a160b
commit 4d23476
Showing
6 changed files
with
76 additions
and
5 deletions.
There are no files selected for viewing
7 changes: 7 additions & 0 deletions
7
npm/vite-dev-server/cypress/components/circular-dependencies/a.spec.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
/// <reference types="cypress" /> | ||
|
||
import { a } from './a' | ||
|
||
it('handles circular dependencies', () => { | ||
expect(a()).to.eq('This is the message') | ||
}) |
9 changes: 9 additions & 0 deletions
9
npm/vite-dev-server/cypress/components/circular-dependencies/a.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
import { b } from './b' | ||
|
||
export function a () { | ||
const msg = b() | ||
|
||
return msg | ||
} | ||
|
||
export const message = 'This is the message' |
5 changes: 5 additions & 0 deletions
5
npm/vite-dev-server/cypress/components/circular-dependencies/b.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { c } from './c' | ||
|
||
export function b () { | ||
return c() | ||
} |
5 changes: 5 additions & 0 deletions
5
npm/vite-dev-server/cypress/components/circular-dependencies/c.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { message } from './a' | ||
|
||
export function c () { | ||
return message | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters