Skip to content

Commit 41d514b

Browse files
committed
test: rename rsbuildConfig to config in test files
1 parent 0c0851c commit 41d514b

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

test/basic/index.test.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('generator TS declaration for cssModules.auto true', async () => {
1717

1818
const rsbuild = await createRsbuild({
1919
cwd: __dirname,
20-
rsbuildConfig: {
20+
config: {
2121
plugins: [
2222
pluginLess(),
2323
pluginSass(),
@@ -80,7 +80,7 @@ test('generator TS declaration for cssModules.auto function', async () => {
8080

8181
const rsbuild = await createRsbuild({
8282
cwd: __dirname,
83-
rsbuildConfig: {
83+
config: {
8484
plugins: [
8585
pluginLess(),
8686
pluginSass(),
@@ -116,7 +116,7 @@ test('generator TS declaration for cssModules.auto Regexp', async () => {
116116

117117
const rsbuild = await createRsbuild({
118118
cwd: __dirname,
119-
rsbuildConfig: {
119+
config: {
120120
plugins: [
121121
pluginLess(),
122122
pluginSass(),
@@ -150,7 +150,7 @@ test('generator TS declaration for `asIs` convention', async () => {
150150

151151
const rsbuild = await createRsbuild({
152152
cwd: __dirname,
153-
rsbuildConfig: {
153+
config: {
154154
plugins: [
155155
pluginLess(),
156156
pluginSass(),

test/loose-typing/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test('generator TS declaration with loose typing', async () => {
1616

1717
const rsbuild = await createRsbuild({
1818
cwd: __dirname,
19-
rsbuildConfig: {
19+
config: {
2020
plugins: [
2121
pluginSass(),
2222
pluginTypedCSSModules({

test/multiple-rules/index.test.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ test('generator TS declaration for multiple Less or Sass plugins', async () => {
1616

1717
const rsbuild = await createRsbuild({
1818
cwd: __dirname,
19-
rsbuildConfig: {
19+
config: {
2020
plugins: [
2121
pluginSass({
2222
include: [/a\.module/],

test/named-export/index.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ test('generator TS declaration for namedExport true', async () => {
1717

1818
const rsbuild = await createRsbuild({
1919
cwd: __dirname,
20-
rsbuildConfig: {
20+
config: {
2121
plugins: [pluginLess(), pluginSass(), pluginTypedCSSModules()],
2222
source: {
2323
entry: { index: resolve(testDir, 'index.js') },
@@ -69,7 +69,7 @@ test('generator TS declaration for namedExport true and `asIs` convention', asyn
6969

7070
const rsbuild = await createRsbuild({
7171
cwd: __dirname,
72-
rsbuildConfig: {
72+
config: {
7373
plugins: [pluginLess(), pluginSass(), pluginTypedCSSModules()],
7474
source: {
7575
entry: { index: resolve(testDir, 'index.js') },

0 commit comments

Comments
 (0)