Skip to content

Commit

Permalink
chore: bump browserslist to version 4.9.1 (#11207)
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed Mar 4, 2020
1 parent 21c9141 commit a12001a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-helper-compilation-targets/package.json
Expand Up @@ -18,7 +18,7 @@
],
"dependencies": {
"@babel/compat-data": "^7.8.6",
"browserslist": "^4.8.5",
"browserslist": "^4.9.1",
"invariant": "^2.2.4",
"levenary": "^1.1.1",
"semver": "^5.5.0"
Expand Down
Expand Up @@ -39,6 +39,13 @@ describe("getTargets", () => {
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", () => {
it("throws on invalid target name", () => {
const invalidTargetName = () => {
Expand Down

0 comments on commit a12001a

Please sign in to comment.