chore: bump browserslist to version 4.9.1 (#11207)

This commit is contained in:
Nicolò Ribaudo 2020-03-05 00:46:10 +01:00 committed by GitHub
parent 21c9141872
commit a12001a0f9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 1 deletions

View File

@ -18,7 +18,7 @@
], ],
"dependencies": { "dependencies": {
"@babel/compat-data": "^7.8.6", "@babel/compat-data": "^7.8.6",
"browserslist": "^4.8.5", "browserslist": "^4.9.1",
"invariant": "^2.2.4", "invariant": "^2.2.4",
"levenary": "^1.1.1", "levenary": "^1.1.1",
"semver": "^5.5.0" "semver": "^5.5.0"

View File

@ -39,6 +39,13 @@ describe("getTargets", () => {
expect(browserslist.defaults).toEqual(browserslistDefaults); expect(browserslist.defaults).toEqual(browserslistDefaults);
}); });
it("supports region browserslists query", () => {
const actual = getTargets({ browsers: "> 0.5% in GB" });
// chrome 4 is the first release of chrome,
// it should never be included in this query
expect(parseFloat(actual.chrome)).toBeGreaterThan(4);
});
describe("validation", () => { describe("validation", () => {
it("throws on invalid target name", () => { it("throws on invalid target name", () => {
const invalidTargetName = () => { const invalidTargetName = () => {