@gooddata/create-pluggable-module 11.53.0-alpha.6 → 11.53.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-app-template-name-harness",
3
- "version": "11.53.0-alpha.6",
3
+ "version": "11.53.0",
4
4
  "private": true,
5
5
  "description": "Standalone harness for gdc-app-template-name module",
6
6
  "license": "UNLICENSED",
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "gdc-app-template-name-module",
3
- "version": "11.53.0-alpha.6",
3
+ "version": "11.53.0",
4
4
  "private": true,
5
5
  "description": "{applicationTemplateTitle} pluggable application module",
6
6
  "license": "UNLICENSED",
@@ -26,6 +26,7 @@
26
26
  },
27
27
  "scripts": {
28
28
  "_phase:build": "npm run build-check",
29
+ "_phase:test": "npm run test-once",
29
30
  "_phase:validate": "npm run validate",
30
31
  "build": "npm-run-all -p build-check dist",
31
32
  "build-check": "tsgo",
@@ -38,6 +39,7 @@
38
39
  "format-write": "oxfmt .",
39
40
  "lint": "oxlint . --quiet && eslint .",
40
41
  "lint-fix": "oxlint . --quiet --fix && eslint . --fix",
42
+ "test-once": "vitest run",
41
43
  "validate": "npm run lint && npm run format-check"
42
44
  },
43
45
  "dependencies": {
@@ -2,9 +2,9 @@
2
2
 
3
3
  import { version as reactVersion } from "react";
4
4
 
5
- import { render, screen } from "@testing-library/react";
5
+ import { cleanup, render, screen } from "@testing-library/react";
6
6
  import { IntlProvider } from "react-intl";
7
- import { describe, expect, it, vi } from "vitest";
7
+ import { afterEach, describe, expect, it, vi } from "vitest";
8
8
 
9
9
  import {
10
10
  type IPluggableAppTelemetryCallbacks,
@@ -47,6 +47,14 @@ function renderWithProviders(ui: React.ReactElement) {
47
47
  );
48
48
  }
49
49
 
50
+ // Vitest globals are off, so testing-library cannot register its own auto-cleanup. Unmount
51
+ // explicitly — without it the rendered trees stack up in the shared document and later
52
+ // queries hit "found multiple elements", both within this file and across files when
53
+ // isolation is disabled.
54
+ afterEach(() => {
55
+ cleanup();
56
+ });
57
+
50
58
  describe("App", () => {
51
59
  it("renders the application title", () => {
52
60
  renderWithProviders(<App />);
@@ -6,6 +6,11 @@ import { defineConfig } from "vitest/config";
6
6
  export default defineConfig({
7
7
  test: {
8
8
  environment: "happy-dom",
9
+ reporters: ["default"],
9
10
  include: ["src/**/*.test.{ts,tsx}"],
11
+ isolate: false,
12
+ restoreMocks: true,
13
+ unstubEnvs: true,
14
+ unstubGlobals: true,
10
15
  },
11
16
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@gooddata/create-pluggable-module",
3
- "version": "11.53.0-alpha.6",
3
+ "version": "11.53.0",
4
4
  "description": "Scaffolder for GoodData pluggable applications. Invoked via `npm init @gooddata/pluggable-module`.",
5
5
  "license": "MIT",
6
6
  "author": "GoodData Corporation",
@@ -50,10 +50,10 @@
50
50
  "typescript": "5.9.3",
51
51
  "vite": "8.0.16",
52
52
  "vitest": "4.1.8",
53
- "@gooddata/eslint-config": "11.53.0-alpha.6",
54
- "gdc-app-template-name-harness": "11.53.0-alpha.6",
55
- "gdc-app-template-name-module": "11.53.0-alpha.6",
56
- "@gooddata/oxlint-config": "11.53.0-alpha.6"
53
+ "@gooddata/eslint-config": "11.53.0",
54
+ "@gooddata/oxlint-config": "11.53.0",
55
+ "gdc-app-template-name-harness": "11.53.0",
56
+ "gdc-app-template-name-module": "11.53.0"
57
57
  },
58
58
  "engines": {
59
59
  "node": ">=24.12.0"