Skip to content

Commit

Permalink
fix: disable fs patches on Windows (#1138)
Browse files Browse the repository at this point in the history
* fix: disable fs patches on Windows

* chore: add jasmine test case to e2e/smoke to test transitive deps on Windows
  • Loading branch information
gregmagolan authored Jul 4, 2023
1 parent 3bd874d commit 14724d9
Show file tree
Hide file tree
Showing 5 changed files with 296 additions and 32 deletions.
11 changes: 9 additions & 2 deletions e2e/bzlmod/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
load("@aspect_bazel_lib//lib:testing.bzl", "assert_contains")
load("@aspect_rules_js//js:defs.bzl", "js_test")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@npm//:less/package_json.bzl", "bin")
load("@npm//:less/package_json.bzl", less_bin = "bin")
load("@npm//:jasmine/package_json.bzl", jasmine_bin = "bin")
load("@npm_meaning-of-life__links//:defs.bzl", npm_link_meaning_of_life = "npm_link_imported_package")

npm_link_all_packages(
Expand All @@ -20,7 +21,7 @@ js_test(
entry_point = "main.mjs",
)

bin.lessc(
less_bin.lessc(
name = "styles",
srcs = ["my.less"],
outs = ["my.css"],
Expand All @@ -35,3 +36,9 @@ assert_contains(
actual = "my.css",
expected = ".box,\n.bar {\n width: 100px;",
)

jasmine_bin.jasmine_test(
name = "jasmine_test",
args = ["*.spec.js"],
data = ["test.spec.js"],
)
5 changes: 3 additions & 2 deletions e2e/bzlmod/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
{
"private": true,
"dependencies": {
"chalk": "latest",
"less": "latest"
"chalk": "5.3.0",
"less": "4.1.3",
"jasmine": "5.0.2"
}
}
Loading

0 comments on commit 14724d9

Please sign in to comment.