Skip to content

Commit

Permalink
chore: Move tests to e2e/workspace folder (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
mrmeku authored Apr 9, 2024
1 parent 746775a commit 79e2f9e
Show file tree
Hide file tree
Showing 19 changed files with 1,274 additions and 217 deletions.
12 changes: 0 additions & 12 deletions WORKSPACE
Original file line number Diff line number Diff line change
Expand Up @@ -34,18 +34,6 @@ load("@bazel_skylib//:workspace.bzl", "bazel_skylib_workspace")

bazel_skylib_workspace()

load("@aspect_rules_js//npm:npm_import.bzl", "npm_translate_lock")

npm_translate_lock(
name = "npm",
pnpm_lock = "@aspect_rules_cypress//cypress/tests:pnpm-lock.yaml",
verify_node_modules_ignored = "@aspect_rules_cypress//:.bazelignore",
)

load("@npm//:repositories.bzl", "npm_repositories")

npm_repositories()

# Buildifier
load("@buildifier_prebuilt//:deps.bzl", "buildifier_prebuilt_deps")

Expand Down
3 changes: 0 additions & 3 deletions cypress/tests/BUILD.bazel

This file was deleted.

25 changes: 0 additions & 25 deletions cypress/tests/cli_test/BUILD

This file was deleted.

9 changes: 0 additions & 9 deletions cypress/tests/package.json

This file was deleted.

1 change: 1 addition & 0 deletions e2e/workspace/.bazelignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
15 changes: 15 additions & 0 deletions e2e/workspace/.bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
# Import Aspect bazelrc presets
import ../../.aspect/bazelrc/bazel7.bazelrc
import ../../.aspect/bazelrc/convenience.bazelrc
import ../../.aspect/bazelrc/correctness.bazelrc
import ../../.aspect/bazelrc/debug.bazelrc
import ../../.aspect/bazelrc/javascript.bazelrc
import ../../.aspect/bazelrc/performance.bazelrc

### YOUR PROJECT SPECIFIC OPTIONS GO HERE ###

# Load any settings & overrides specific to the current user from `.aspect/bazelrc/user.bazelrc`.
# This file should appear in `.gitignore` so that settings are not shared with team members. This
# should be last statement in this config so the user configuration is able to overwrite flags from
# this file. See https://bazel.build/configure/best-practices#bazelrc-file.
try-import ../../.aspect/bazelrc/user.bazelrc
15 changes: 2 additions & 13 deletions e2e/workspace/BUILD
Original file line number Diff line number Diff line change
@@ -1,17 +1,6 @@
"""Provides a simple way to test your rules as an external workspace.
Add a basic smoke-test target below.
"""

load("@bazel_skylib//rules:build_test.bzl", "build_test")
# load("aspect_rules_cypress//cypress:defs.bzl", "...")
load("@npm//:defs.bzl", "npm_link_all_packages")

# Replace with a usage of your rule/macro
filegroup(name = "empty")

build_test(
name = "smoke_test",
targets = [
# targets you add above
":empty",
],
)
npm_link_all_packages(name = "node_modules")
Loading

0 comments on commit 79e2f9e

Please sign in to comment.