@bleedingdev/modern-js-adapter-rstest 3.9.0-ultramodern.9 → 3.9.3-ultramodern.10

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.
package/package.json CHANGED
@@ -1,17 +1,17 @@
1
1
  {
2
2
  "name": "@bleedingdev/modern-js-adapter-rstest",
3
3
  "description": "Modern.js adapter to run tests via Rstest.",
4
- "homepage": "https://github.com/BleedingDev/ultramodern.js#readme",
4
+ "homepage": "https://github.com/ultramodernjs/ultramodern.js#readme",
5
5
  "bugs": {
6
- "url": "https://github.com/BleedingDev/ultramodern.js/issues"
6
+ "url": "https://github.com/ultramodernjs/ultramodern.js/issues"
7
7
  },
8
8
  "repository": {
9
9
  "type": "git",
10
- "url": "git+https://github.com/BleedingDev/ultramodern.js.git",
10
+ "url": "git+https://github.com/ultramodernjs/ultramodern.js.git",
11
11
  "directory": "packages/cli/adapter-rstest"
12
12
  },
13
13
  "license": "MIT",
14
- "version": "3.9.0-ultramodern.9",
14
+ "version": "3.9.3-ultramodern.10",
15
15
  "type": "module",
16
16
  "main": "dist/index.js",
17
17
  "types": "dist/index.d.ts",
@@ -22,27 +22,33 @@
22
22
  }
23
23
  },
24
24
  "dependencies": {
25
- "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.9.0-ultramodern.9",
26
- "@rstest/adapter-rsbuild": "^0.11.12"
25
+ "@modern-js/app-tools": "npm:@bleedingdev/modern-js-app-tools@3.9.3-ultramodern.10",
26
+ "@rstest/adapter-rsbuild": "^0.12.3"
27
27
  },
28
28
  "devDependencies": {
29
- "@modern-js/tsconfig": "npm:@bleedingdev/modern-js-tsconfig@3.9.0-ultramodern.9",
30
- "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.0-ultramodern.9",
31
- "@rsbuild/core": "2.2.3",
32
- "@rslib/core": "1.0.0",
33
- "@rstest/core": "0.11.12",
29
+ "@modern-js/tsconfig": "npm:@bleedingdev/modern-js-tsconfig@3.9.3-ultramodern.10",
30
+ "@modern-js/types": "npm:@bleedingdev/modern-js-types@3.9.3-ultramodern.10",
31
+ "@rsbuild/core": "2.2.13",
32
+ "@rslib/core": "1.0.3",
33
+ "@rstest/core": "0.12.3",
34
34
  "@scripts/rstest-config": "2.66.0",
35
- "@types/node": "^26.4.1",
36
- "@typescript/native-preview": "7.0.0-dev.20260707.2",
37
- "typescript": "^7.0.2"
35
+ "@types/node": "^26.6.5",
36
+ "typescript": "7.0.2"
38
37
  },
39
38
  "sideEffects": false,
40
39
  "publishConfig": {
41
40
  "access": "public"
42
41
  },
42
+ "files": [
43
+ "dist",
44
+ "src"
45
+ ],
43
46
  "scripts": {
44
47
  "build": "rslib build",
45
48
  "dev": "rslib build --watch",
46
49
  "test": "rstest"
50
+ },
51
+ "ultramodern": {
52
+ "sourceName": "@modern-js/adapter-rstest"
47
53
  }
48
54
  }
package/rslib.config.mts DELETED
@@ -1,12 +0,0 @@
1
- import { defineConfig } from '@rslib/core';
2
-
3
- export default defineConfig({
4
- lib: [
5
- {
6
- format: 'esm',
7
- dts: true,
8
- bundle: false,
9
- syntax: 'es2021',
10
- },
11
- ],
12
- });
package/rstest.config.mts DELETED
@@ -1,11 +0,0 @@
1
- import { defineConfig } from '@rstest/core';
2
-
3
- export default defineConfig({
4
- root: __dirname,
5
- testEnvironment: 'node',
6
- output: {
7
- externals: {
8
- '@modern-js/app-tools': 'commonjs @modern-js/app-tools',
9
- },
10
- },
11
- });
@@ -1,48 +0,0 @@
1
- import { resolveModernRsbuildConfig } from '@modern-js/app-tools';
2
- import { afterEach, describe, expect, rstest, test } from '@rstest/core';
3
- import { withModernConfig } from '../src';
4
-
5
- rstest.mock('@modern-js/app-tools', () => ({
6
- __esModule: true,
7
- resolveModernRsbuildConfig: rstest.fn(),
8
- }));
9
-
10
- describe('withModernConfig', () => {
11
- const mockResolveModernRsbuildConfig = rstest.mocked(
12
- resolveModernRsbuildConfig,
13
- );
14
-
15
- afterEach(() => {
16
- rstest.resetAllMocks();
17
- });
18
-
19
- test('should resolve modern rsbuild config with rstest command', async () => {
20
- mockResolveModernRsbuildConfig.mockResolvedValue({
21
- rsbuildConfig: {
22
- root: '/app',
23
- output: {
24
- target: 'node',
25
- },
26
- },
27
- });
28
-
29
- const extend = withModernConfig({
30
- cwd: '/app',
31
- configPath: 'custom.modern.config.ts',
32
- });
33
-
34
- const config = await extend({});
35
-
36
- expect(mockResolveModernRsbuildConfig).toBeCalledTimes(1);
37
- expect(mockResolveModernRsbuildConfig).toBeCalledWith({
38
- cwd: '/app',
39
- configPath: 'custom.modern.config.ts',
40
- command: 'rstest',
41
- disableReactCompiler: true,
42
- modifyModernConfig: expect.any(Function),
43
- });
44
- expect(config.testEnvironment).toBe('node');
45
- expect(config.root).toBe('/app');
46
- expect(config.output?.module).toBe(true);
47
- });
48
- });
package/tsconfig.json DELETED
@@ -1,13 +0,0 @@
1
- {
2
- "extends": "@modern-js/tsconfig/base",
3
- "compilerOptions": {
4
- "ignoreDeprecations": "5.0",
5
- "module": "ES2020",
6
- "outDir": "./dist",
7
- "noUnusedLocals": true,
8
- "noUnusedParameters": true,
9
- "rootDir": "src",
10
- "moduleResolution": "Bundler"
11
- },
12
- "include": ["src"]
13
- }