@gitlab/frontend-tests 0.0.1 → 0.1.2

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.
Files changed (42) hide show
  1. package/README.md +112 -1
  2. package/dist/index.cjs +38 -0
  3. package/dist/index.d.cts +1 -0
  4. package/dist/index.d.ts +1 -0
  5. package/dist/index.js +5 -0
  6. package/dist/integration/constants.d.cts +3 -0
  7. package/dist/integration/constants.d.ts +3 -0
  8. package/dist/integration/fixture_utils.d.cts +107 -0
  9. package/dist/integration/fixture_utils.d.ts +107 -0
  10. package/dist/integration/fixture_variant_schema.d.cts +74 -0
  11. package/dist/integration/fixture_variant_schema.d.ts +74 -0
  12. package/dist/integration/handlers.d.cts +10 -0
  13. package/dist/integration/handlers.d.ts +10 -0
  14. package/dist/integration/index.d.cts +7 -0
  15. package/dist/integration/index.d.ts +7 -0
  16. package/dist/integration/jest_config.cjs +31 -0
  17. package/dist/integration/jest_config.d.cts +11 -0
  18. package/dist/integration/jest_config.d.ts +11 -0
  19. package/dist/integration/jest_config.js +27 -0
  20. package/dist/integration/operation_helpers.d.cts +70 -0
  21. package/dist/integration/operation_helpers.d.ts +70 -0
  22. package/dist/integration/polyfills.cjs +21 -0
  23. package/dist/integration/polyfills.d.cts +1 -0
  24. package/dist/integration/polyfills.d.ts +1 -0
  25. package/dist/integration/polyfills.js +19 -0
  26. package/dist/integration/polyfills_text_encoding.cjs +8 -0
  27. package/dist/integration/polyfills_text_encoding.d.cts +1 -0
  28. package/dist/integration/polyfills_text_encoding.d.ts +1 -0
  29. package/dist/integration/polyfills_text_encoding.js +6 -0
  30. package/dist/integration/server.d.cts +3 -0
  31. package/dist/integration/server.d.ts +3 -0
  32. package/dist/integration/types.d.cts +82 -0
  33. package/dist/integration/types.d.ts +82 -0
  34. package/dist/integration.cjs +38 -0
  35. package/dist/integration.js +5 -0
  36. package/dist/server-C2Drh977.js +3970 -0
  37. package/dist/server-hzT7AwDi.cjs +3999 -0
  38. package/integration/jest-config.js +2 -0
  39. package/integration/polyfills/text-encoding.js +2 -0
  40. package/integration/polyfills.js +2 -0
  41. package/integration.js +2 -0
  42. package/package.json +138 -5
@@ -0,0 +1,2 @@
1
+ // Resolver stub for tools that ignore `exports` (webpack 4). Node and Jest use `exports`.
2
+ export * from '../dist/integration/jest_config.js';
@@ -0,0 +1,2 @@
1
+ // Resolver stub for tools that ignore `exports` (webpack 4). Node and Jest use `exports`.
2
+ import '../../dist/integration/polyfills_text_encoding.js';
@@ -0,0 +1,2 @@
1
+ // Resolver stub for tools that ignore `exports` (webpack 4). Node and Jest use `exports`.
2
+ import '../dist/integration/polyfills.js';
package/integration.js ADDED
@@ -0,0 +1,2 @@
1
+ // Resolver stub for tools that ignore `exports` (webpack 4). Node and Jest use `exports`.
2
+ export * from './dist/integration.js';
package/package.json CHANGED
@@ -1,8 +1,141 @@
1
1
  {
2
2
  "name": "@gitlab/frontend-tests",
3
- "description": "Stub @gitlab/frontend-tests",
4
- "version": "0.0.1",
5
- "author": "GitLab",
6
- "license": "UNLICENSED",
7
- "files": []
3
+ "version": "0.1.2",
4
+ "description": "Reusable test infrastructure for GitLab frontend packages",
5
+ "license": "MIT",
6
+ "type": "module",
7
+ "main": "./dist/index.cjs",
8
+ "module": "./dist/index.js",
9
+ "types": "./dist/index.d.ts",
10
+ "typesVersions": {
11
+ "*": {
12
+ "integration": [
13
+ "./dist/integration/index.d.ts"
14
+ ],
15
+ "integration/jest-config": [
16
+ "./dist/integration/jest_config.d.ts"
17
+ ],
18
+ "integration/polyfills": [
19
+ "./dist/integration/polyfills.d.ts"
20
+ ],
21
+ "integration/polyfills/text-encoding": [
22
+ "./dist/integration/polyfills_text_encoding.d.ts"
23
+ ]
24
+ }
25
+ },
26
+ "exports": {
27
+ ".": {
28
+ "import": {
29
+ "types": "./dist/index.d.ts",
30
+ "default": "./dist/index.js"
31
+ },
32
+ "require": {
33
+ "types": "./dist/index.d.cts",
34
+ "default": "./dist/index.cjs"
35
+ }
36
+ },
37
+ "./integration": {
38
+ "import": {
39
+ "types": "./dist/integration/index.d.ts",
40
+ "default": "./dist/integration.js"
41
+ },
42
+ "require": {
43
+ "types": "./dist/integration/index.d.cts",
44
+ "default": "./dist/integration.cjs"
45
+ }
46
+ },
47
+ "./integration/polyfills": {
48
+ "import": {
49
+ "types": "./dist/integration/polyfills.d.ts",
50
+ "default": "./dist/integration/polyfills.js"
51
+ },
52
+ "require": {
53
+ "types": "./dist/integration/polyfills.d.cts",
54
+ "default": "./dist/integration/polyfills.cjs"
55
+ }
56
+ },
57
+ "./integration/polyfills/text-encoding": {
58
+ "import": {
59
+ "types": "./dist/integration/polyfills_text_encoding.d.ts",
60
+ "default": "./dist/integration/polyfills_text_encoding.js"
61
+ },
62
+ "require": {
63
+ "types": "./dist/integration/polyfills_text_encoding.d.cts",
64
+ "default": "./dist/integration/polyfills_text_encoding.cjs"
65
+ }
66
+ },
67
+ "./integration/jest-config": {
68
+ "import": {
69
+ "types": "./dist/integration/jest_config.d.ts",
70
+ "default": "./dist/integration/jest_config.js"
71
+ },
72
+ "require": {
73
+ "types": "./dist/integration/jest_config.d.cts",
74
+ "default": "./dist/integration/jest_config.cjs"
75
+ }
76
+ },
77
+ "./*": {
78
+ "import": {
79
+ "types": "./dist/*.d.ts",
80
+ "default": "./dist/*.js"
81
+ },
82
+ "require": {
83
+ "types": "./dist/*.d.cts",
84
+ "default": "./dist/*.cjs"
85
+ }
86
+ }
87
+ },
88
+ "files": [
89
+ "dist",
90
+ "integration.js",
91
+ "integration"
92
+ ],
93
+ "scripts": {
94
+ "build": "rollup -c && node scripts/emit_cjs_types.mjs",
95
+ "test": "vitest run",
96
+ "test:watch": "vitest",
97
+ "lint": "eslint src/",
98
+ "typecheck": "tsc --noEmit",
99
+ "prepublishOnly": "yarn build"
100
+ },
101
+ "dependencies": {
102
+ "@whatwg-node/fetch": "^0.10.11"
103
+ },
104
+ "peerDependencies": {
105
+ "@jest/types": ">=29",
106
+ "msw": "^2.0.0"
107
+ },
108
+ "peerDependenciesMeta": {
109
+ "@jest/types": {
110
+ "optional": true
111
+ }
112
+ },
113
+ "devDependencies": {
114
+ "@eslint/js": "^9.0.0",
115
+ "@jest/types": "^30.5.1",
116
+ "@rollup/plugin-commonjs": "^29.0.3",
117
+ "@rollup/plugin-node-resolve": "^16.0.3",
118
+ "@rollup/plugin-typescript": "^12.3.0",
119
+ "@types/lodash-es": "^4.17.12",
120
+ "@types/node": "^20",
121
+ "eslint": "^9.0.0",
122
+ "globals": "^17.7.0",
123
+ "lodash-es": "^4.17.23",
124
+ "msw": "^2.15.0",
125
+ "rollup": "^4.0.0",
126
+ "tslib": "^2.8.1",
127
+ "typescript": "~5.8.0",
128
+ "typescript-eslint": "^8.71.0",
129
+ "vitest": "^3.0.0"
130
+ },
131
+ "engines": {
132
+ "node": ">=20"
133
+ },
134
+ "repository": {
135
+ "type": "git",
136
+ "url": "https://gitlab.com/gitlab-org/frontend/tests"
137
+ },
138
+ "publishConfig": {
139
+ "registry": "https://registry.npmjs.org/"
140
+ }
8
141
  }