-
Notifications
You must be signed in to change notification settings - Fork 598
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore: update test suites to leverage @web/test-runner and esm supported libraries #6847
Changes from all commits
727fa64
acb1ea6
577ab9b
ffec139
9a69de3
89c4ea5
8dab586
255b309
30a36ec
1a52a25
cf8bf72
b107a5a
b9c4c69
c6121e5
3ccdd58
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "update to use web test runner", | ||
"packageName": "@microsoft/fast-colors", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "update to use web test runner", | ||
"packageName": "@microsoft/fast-element", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "update to use web test runner", | ||
"packageName": "@microsoft/fast-foundation", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "update to use web test runner", | ||
"packageName": "@microsoft/fast-react-wrapper", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "update to use web test runner", | ||
"packageName": "@microsoft/fast-router", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "update playwright version", | ||
"packageName": "@microsoft/fast-ssr", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
{ | ||
"type": "none", | ||
"comment": "update to use web test runner", | ||
"packageName": "@microsoft/fast-web-utilities", | ||
"email": "[email protected]", | ||
"dependentChangeType": "none" | ||
} |
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -37,9 +37,8 @@ | |
"watch": "yarn build -- -w --preserveWatchOutput" | ||
}, | ||
"devDependencies": { | ||
"@types/chai": "^4.2.11", | ||
"@esm-bundle/chai": "4.3.4-fix.0", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is a weird nonstandard version of a package that hasn't been published in over a year: |
||
"@types/mocha": "^8.2.0", | ||
"chai": "^4.2.0", | ||
"mocha": "^8.2.1", | ||
"@microsoft/eslint-config-fast-dna": "^2.1.0", | ||
"eslint-config-prettier": "^8.8.0", | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import chai from "chai"; | ||
import { expect } from "@esm-bundle/chai"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Chai version 5 is currently in alpha but is rewritten to only support ESM. Will we go back to Chai proper once it's stable? https://github.com/chaijs/chai/releases/tag/v5.0.0-alpha.2 |
||
import { test } from "mocha"; | ||
import { testData } from "./__test__/testData.js"; | ||
import { | ||
|
@@ -16,7 +16,7 @@ import { | |
lightenViaLAB, | ||
saturateViaLCH, | ||
} from "./index.js"; | ||
const expect = chai.expect; | ||
|
||
const testPrecision: number = 4; | ||
|
||
describe("Color blending functions", () => { | ||
|
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This has been a pain point for a while now - we're mixing NPM and Yarn across the repo and it's possible that this could result in conflicts since we're all using yarn locally, but the CI is using NPM. It makes it more complicated to debug when something goes wrong on the pipeline.
We should either be using only Yarn everywhere or only NPM everywhere, not both.