Skip to content

Conversation

fanck0605
Copy link
Contributor

With github actions we can run tests on windows, so manual simulation of pathSep is no longer necessary.

@fanck0605 fanck0605 changed the title Remove unused window path sep mook Remove unused windows path sep mook Oct 10, 2021
@fanck0605 fanck0605 force-pushed the windows branch 2 times, most recently from f8d137b to 7fdd791 Compare October 12, 2021 16:08
@fanck0605 fanck0605 changed the title Remove unused windows path sep mook Remove useless windows path sep mook Oct 12, 2021
@fanck0605 fanck0605 force-pushed the windows branch 2 times, most recently from 7b25f5e to 0c744a0 Compare December 18, 2021 06:02
We need to modify the jest config so that the Less Modules can be tested properly.

https://jestjs.io/docs/webpack#mocking-css-modules

```diff
 const jestConfig = {
   moduleNameMapper: {
-    "^.+\\.module\\.(css|sass|scss)$": "identity-obj-proxy",
+    "^.+\\.module\\.(css|less|sass|scss)$": "identity-obj-proxy",
   },
   transformIgnorePatterns: [
-    "^.+\\.module\\.(css|sass|scss)$",
+    "^.+\\.module\\.(css|less|sass|scss)$",
   ],
 };
```
There is no longer a need to manually mock pathSep, as we can run tests on Windows using GitHub Actions.
@kamronbatman kamronbatman changed the title Remove useless windows path sep mook Remove useless windows path sep mock Apr 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants