Skip to content

Commit

Permalink
test: Rollback @material-ui tests to v4.
Browse files Browse the repository at this point in the history
  • Loading branch information
avocadowastaken committed Sep 6, 2021
1 parent 3d67e70 commit 021758e
Show file tree
Hide file tree
Showing 12 changed files with 887 additions and 2,832 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -28,8 +28,8 @@ import {
**Out**

```javascript
import Button from "@material-ui/core/Button/Button.js";
import * as colors from "@material-ui/core/colors/index.js";
import Button from "@material-ui/core/esm/Button/Button.js";
import * as colors from "@material-ui/core/esm/colors/index.js";
import ThemeProvider from "@material-ui/system/esm/ThemeProvider/ThemeProvider.js";
import ChevronLeftIcon from "@material-ui/icons/esm/ChevronLeft.js";
import ChevronRightIcon from "@material-ui/icons/esm/ChevronRight.js";
Expand Down Expand Up @@ -111,7 +111,7 @@ export const noop = () => {};
}
```

##### [Material UI](https://github.com/mui-org/material-ui)
##### [Material UI (v4)](https://github.com/mui-org/material-ui/tree/v4.12.3)

```json
{
Expand Down
1 change: 1 addition & 0 deletions lib/internal/NodeModule.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,7 @@ describe(".get", () => {
"node_modules",
"@material-ui",
"core",
"esm",
"index.js"
),
});
Expand Down
2 changes: 2 additions & 0 deletions lib/internal/PluginOptions.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ test.each([
"node_modules",
"@material-ui",
"core",
"esm",
"index.js"
),
},
Expand All @@ -42,6 +43,7 @@ test.each([
"node_modules",
"@material-ui",
"core",
"esm",
"Button",
"index.js"
),
Expand Down
6 changes: 3 additions & 3 deletions lib/plugin.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ test("default import", () => {
modules: ["@material-ui/core/Button"],
})
).toMatchInlineSnapshot(
`"import Button from \\"@material-ui/core/Button/Button.js\\";"`
`"import Button from \\"@material-ui/core/esm/Button/Button.js\\";"`
);
});

Expand Down Expand Up @@ -89,14 +89,14 @@ test("deep module dependencies", () => {
modules: ["@material-ui/core"],
})
).toMatchInlineSnapshot(
`"import { ThemeProvider as Theme } from \\"@material-ui/system\\";"`
`"import { ThemeProvider as Theme } from \\"@material-ui/styles\\";"`
);

expect(
transform('import { ThemeProvider as Theme } from "@material-ui/core";', {
modules: ["@material-ui/core", "@material-ui/system"],
})
).toMatchInlineSnapshot(
`"import Theme from \\"@material-ui/system/esm/ThemeProvider/ThemeProvider.js\\";"`
`"import { ThemeProvider as Theme } from \\"@material-ui/styles\\";"`
);
});
Loading

0 comments on commit 021758e

Please sign in to comment.