Skip to content

Commit

Permalink
Make test deterministic across filesystems
Browse files Browse the repository at this point in the history
  • Loading branch information
thecrypticace committed Apr 4, 2024
1 parent 551378c commit daa8bb2
Showing 1 changed file with 2 additions and 1 deletion.
Expand Up @@ -31,11 +31,12 @@ function testFixture(fixture: string, details: any[]) {
expect(configPath).toEqual(detail?.config)

if (detail?.content) {
let expected = detail?.content.map((path) => path.replace('{URL}', fixturePath))
let expected = detail?.content.map((path) => path.replace('{URL}', fixturePath)).sort()

let actual = project.documentSelector
.filter((selector) => selector.priority === 1 /** content */)
.map((selector) => selector.pattern)
.sort()

expect(actual).toEqual(expected)
}
Expand Down

0 comments on commit daa8bb2

Please sign in to comment.