diff --git a/BUILD.bazel b/BUILD.bazel
index 7d54c371a..525fdfd58 100644
--- a/BUILD.bazel
+++ b/BUILD.bazel
@@ -29,7 +29,7 @@ js_library(
testonly = True,
srcs = [
"scripts/vitest.setup.ts",
- "vitest.config.ts",
+ "vitest.config.mts",
],
visibility = ["//visibility:public"],
deps = [
diff --git a/docs/site/src/content/docs/content/assets-views.mdx b/docs/site/src/content/docs/content/assets-views.mdx
index 4dbf131b1..207867cec 100644
--- a/docs/site/src/content/docs/content/assets-views.mdx
+++ b/docs/site/src/content/docs/content/assets-views.mdx
@@ -108,7 +108,7 @@ They follow the same guidelines for normal validation references, with the addit
## Applicability
-Any object in the tree (including _assets_) may contain an `applicability` property. This is an _expression_ that may conditionally show or hide an asset (and all of it's children) from the view tree. Applicability is dynamically calculated and will automatically update as data changes on the page.
+Assets (but not Views) may contain an `applicability` property. This is an _expression_ that may conditionally show or hide an asset (and all of it's children) from the view tree. Applicability is dynamically calculated and will automatically update as data changes on the page.
## Switches
diff --git a/plugins/reference-assets/react/src/__tests__/integration.test.tsx b/plugins/reference-assets/react/src/__tests__/integration.test.tsx
index 26dc32370..4689184f0 100644
--- a/plugins/reference-assets/react/src/__tests__/integration.test.tsx
+++ b/plugins/reference-assets/react/src/__tests__/integration.test.tsx
@@ -149,8 +149,10 @@ describe("Integration tests", () => {
fireEvent.click(itemNode);
});
- itemNode = await screen.findByTestId(item.id);
- expect(itemNode.checked).toEqual(true);
+ await waitFor(async () => {
+ itemNode = await screen.findByTestId(item.id);
+ expect(itemNode.checked).toEqual(true);
+ });
}
});
});
diff --git a/react/player/src/__tests__/__snapshots__/app.test.tsx.snap b/react/player/src/__tests__/__snapshots__/app.test.tsx.snap
index 8528144db..bcd4b4196 100644
--- a/react/player/src/__tests__/__snapshots__/app.test.tsx.snap
+++ b/react/player/src/__tests__/__snapshots__/app.test.tsx.snap
@@ -68,72 +68,3 @@ exports[`ReactPlayer React > renders into a react comp 1`] = `
"unmount": [Function],
}
`;
-
-exports[`ReactPlayer React renders into a react comp 1`] = `
-Object {
- "asFragment": [Function],
- "baseElement":
-
- ,
- "container": ,
- "debug": [Function],
- "findAllByAltText": [Function],
- "findAllByDisplayValue": [Function],
- "findAllByLabelText": [Function],
- "findAllByPlaceholderText": [Function],
- "findAllByRole": [Function],
- "findAllByTestId": [Function],
- "findAllByText": [Function],
- "findAllByTitle": [Function],
- "findByAltText": [Function],
- "findByDisplayValue": [Function],
- "findByLabelText": [Function],
- "findByPlaceholderText": [Function],
- "findByRole": [Function],
- "findByTestId": [Function],
- "findByText": [Function],
- "findByTitle": [Function],
- "getAllByAltText": [Function],
- "getAllByDisplayValue": [Function],
- "getAllByLabelText": [Function],
- "getAllByPlaceholderText": [Function],
- "getAllByRole": [Function],
- "getAllByTestId": [Function],
- "getAllByText": [Function],
- "getAllByTitle": [Function],
- "getByAltText": [Function],
- "getByDisplayValue": [Function],
- "getByLabelText": [Function],
- "getByPlaceholderText": [Function],
- "getByRole": [Function],
- "getByTestId": [Function],
- "getByText": [Function],
- "getByTitle": [Function],
- "queryAllByAltText": [Function],
- "queryAllByDisplayValue": [Function],
- "queryAllByLabelText": [Function],
- "queryAllByPlaceholderText": [Function],
- "queryAllByRole": [Function],
- "queryAllByTestId": [Function],
- "queryAllByText": [Function],
- "queryAllByTitle": [Function],
- "queryByAltText": [Function],
- "queryByDisplayValue": [Function],
- "queryByLabelText": [Function],
- "queryByPlaceholderText": [Function],
- "queryByRole": [Function],
- "queryByTestId": [Function],
- "queryByText": [Function],
- "queryByTitle": [Function],
- "rerender": [Function],
- "unmount": [Function],
-}
-`;
diff --git a/tools/BUILD b/tools/BUILD
index 80c84371c..f32f77caa 100644
--- a/tools/BUILD
+++ b/tools/BUILD
@@ -2,7 +2,7 @@ load("@aspect_rules_js//js:defs.bzl", "js_library")
exports_files([
"tsup.config.ts.tmpl",
- "vitest.config.ts.tmpl",
+ "vitest.config.mts.tmpl",
])
js_library(
diff --git a/tools/defs.bzl b/tools/defs.bzl
index 4f25bd7b4..69fe78686 100644
--- a/tools/defs.bzl
+++ b/tools/defs.bzl
@@ -23,9 +23,9 @@ def vitest_config(name):
expand_template(
name = name,
- out = "vitest.config.ts",
+ out = "vitest.config.mts",
substitutions = {
"%PREFIX%": prefix,
},
- template = "//tools:vitest.config.ts.tmpl",
+ template = "//tools:vitest.config.mts.tmpl",
)
diff --git a/tools/vitest.config.ts.tmpl b/tools/vitest.config.mts.tmpl
similarity index 100%
rename from tools/vitest.config.ts.tmpl
rename to tools/vitest.config.mts.tmpl
diff --git a/vitest.config.ts b/vitest.config.mts
similarity index 87%
rename from vitest.config.ts
rename to vitest.config.mts
index f583f9689..613dc0290 100644
--- a/vitest.config.ts
+++ b/vitest.config.mts
@@ -5,7 +5,14 @@ import path from "node:path";
export default defineConfig({
test: {
environment: "happy-dom",
- exclude: [...configDefaults.exclude, "helpers"],
+ exclude: [
+ ...configDefaults.exclude,
+ "helpers",
+ "bazel-bin",
+ "bazel-out",
+ "bazel-player",
+ "bazel-testlogs",
+ ],
reporters: [
"default",
process.env.XML_OUTPUT_FILE ? "junit" : "basic",