We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4828c30 commit 143574aCopy full SHA for 143574a
e2e/cases/cli/config-loader/index.test.ts
@@ -3,7 +3,14 @@ import path from 'node:path';
3
import { globContentJSON, rspackOnlyTest } from '@e2e/helper';
4
import { expect } from '@playwright/test';
5
6
-rspackOnlyTest('should use Node.js native loader to load config', async () => {
+const nodeVersion = process.version.slice(1).split('.')[0];
7
+const isNodeVersionCompatible = Number(nodeVersion) >= 22;
8
+
9
+const conditionalTest = isNodeVersionCompatible
10
+ ? rspackOnlyTest
11
+ : rspackOnlyTest.skip;
12
13
+conditionalTest('should use Node.js native loader to load config', async () => {
14
execSync('npx rsbuild build --config-loader native', {
15
cwd: __dirname,
16
env: {
0 commit comments