-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
add a tests for circular dependencies
- Loading branch information
1 parent
a737464
commit 584bf8a
Showing
4 changed files
with
26 additions
and
0 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 | ||
} |