Skip to content

feat: add rspack dynamic import configuration to rsbuild (#3819) #2560

feat: add rspack dynamic import configuration to rsbuild (#3819)

feat: add rspack dynamic import configuration to rsbuild (#3819) #2560

GitHub Actions / Test Report succeeded Jan 16, 2025 in 1s

143 passed, 0 failed and 0 skipped

Tests passed successfully

✅ packages/bruno-tests/collection/junit.xml

143 tests were completed in 25s with 143 passed, 0 failed and 0 skipped.

Test suite Passed Failed Skipped Time
auth/basic/via auth/Basic Auth 200 2✅ 777ms
auth/basic/via auth/Basic Auth 401 2✅ 242ms
auth/basic/via script/Basic Auth 200 2✅ 240ms
auth/basic/via script/Basic Auth 401 2✅ 241ms
auth/bearer/via auth/Bearer Auth 200 2✅ 870ms
auth/bearer/via headers/Bearer Auth 200 2✅ 324ms
auth/cookie/Check 847ms
auth/cookie/Login 239ms
auth/inherit auth/inherit Bearer Auth 200 2✅ 391ms
echo/echo bom json 686ms
echo/echo form-url-encoded 1✅ 84ms
echo/echo json 2✅ 244ms
echo/echo multipart 3✅ 199ms
echo/echo multipart scripting 1✅ 82ms
echo/echo numbers 16✅ 334ms
echo/echo plaintext 2✅ 239ms
echo/echo xml parsed 2✅ 244ms
echo/echo xml parsed(self closing tags) 2✅ 236ms
echo/echo xml raw 249ms
graphql/spacex 1✅ 296ms
ping 331ms
preview/html/bruno 2✅ 373ms
preview/image/bruno 1✅ 85ms
redirects/Disable Redirect 2✅ 892ms
redirects/Test Redirect 3✅ 1s
scripting/api/bru/getCollectionVar 1✅ 328ms
scripting/api/bru/getEnvName 1✅ 337ms
scripting/api/bru/getEnvVar 1✅ 333ms
scripting/api/bru/getFolderVar 1✅ 328ms
scripting/api/bru/getProcessEnv 1✅ 343ms
scripting/api/bru/getRequestVar 1✅ 337ms
scripting/api/bru/getVar 1✅ 335ms
scripting/api/bru/setEnvVar 1✅ 329ms
scripting/api/bru/setVar 1✅ 331ms
scripting/api/req/getBody 2✅ 669ms
scripting/api/req/getHeader 3✅ 334ms
scripting/api/req/getHeaders 3✅ 330ms
scripting/api/req/getMethod 3✅ 333ms
scripting/api/req/getUrl 3✅ 326ms
scripting/api/req/setBody 2✅ 235ms
scripting/api/req/setHeader 3✅ 331ms
scripting/api/req/setHeaders 3✅ 345ms
scripting/api/req/setMethod 3✅ 339ms
scripting/api/req/setUrl 3✅ 337ms
scripting/api/res/getBody 2✅ 239ms
scripting/api/res/getHeader 2✅ 237ms
scripting/api/res/getHeaders 2✅ 235ms
scripting/api/res/getResponseTime 2✅ 235ms
scripting/api/res/getStatus 3✅ 328ms
scripting/inbuilt modules/axios/axios-pre-req-script 1✅ 463ms
scripting/inbuilt modules/crypto-js/crypto-js-pre-request-script 1✅ 333ms
scripting/inbuilt modules/nanoid/nanoid 1✅ 328ms
scripting/inbuilt modules/uuid/uuid 1✅ 332ms
scripting/js/data types 1✅ 239ms
scripting/js/data types - request vars 15✅ 240ms
scripting/js/folder-collection script-tests 4✅ 82ms
scripting/js/folder-collection script-tests pre 234ms
scripting/js/setTimeout 1✅ 1s
scripting/local modules/invalid and valid module imports 2✅ 334ms
scripting/local modules/sum 4✅ 238ms
scripting/local modules/sum (without js extn) 2✅ 246ms
scripting/npm modules/fakerjs 2✅ 2s
string interpolation/env vars 2✅ 237ms
string interpolation/missing values 2✅ 244ms
string interpolation/process env vars 2✅ 236ms
string interpolation/runtime vars 2✅ 237ms

✅ auth/basic/via auth/Basic Auth 200

https://testbench-sanity.usebruno.com/api/auth/basic/protected
  ✅ res.status 200
  ✅ res.body.message Authentication successful

✅ auth/basic/via auth/Basic Auth 401

https://testbench-sanity.usebruno.com/api/auth/basic/protected
  ✅ res.status 401
  ✅ res.body Unauthorized

✅ auth/basic/via script/Basic Auth 200

https://testbench-sanity.usebruno.com/api/auth/basic/protected
  ✅ res.status eq 200
  ✅ res.body.message Authentication successful

✅ auth/basic/via script/Basic Auth 401

https://testbench-sanity.usebruno.com/api/auth/basic/protected
  ✅ res.status 401
  ✅ res.body Unauthorized

✅ auth/bearer/via auth/Bearer Auth 200

https://testbench-sanity.usebruno.com/api/auth/bearer/protected
  ✅ res.status 200
  ✅ res.body.message Authentication successful

✅ auth/bearer/via headers/Bearer Auth 200

https://testbench-sanity.usebruno.com/api/auth/bearer/protected
  ✅ res.status 200
  ✅ res.body.message Authentication successful

✅ auth/inherit auth/inherit Bearer Auth 200

https://testbench-sanity.usebruno.com/api/auth/bearer/protected
  ✅ res.status 200
  ✅ res.body.message Authentication successful

✅ echo/echo form-url-encoded

https://echo.usebruno.com
  ✅ res.body eq form-data-key=form-data-value&form-data-stringified-object=%7B%22foo%22%3A123%7D

✅ echo/echo json

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ should return json

✅ echo/echo multipart

https://echo.usebruno.com
  ✅ res.body contains form-data-value
  ✅ res.body contains {"foo":123}
  ✅ res.body contains Content-Type: application/json--test

✅ echo/echo multipart scripting

https://echo.usebruno.com
  ✅ res.body contains form-data-value

✅ echo/echo numbers

https://echo.usebruno.com
  ✅ res.body.integer eq 123
  ✅ res.body.integer isNumber
  ✅ res.body.negativeInteger eq -99
  ✅ res.body.negativeInteger isNumber
  ✅ res.body.zero eq 0
  ✅ res.body.zero isNumber
  ✅ res.body.float eq 2.718
  ✅ res.body.float isNumber
  ✅ res.body.negativeFloat eq -1.618
  ✅ res.body.negativeFloat isNumber
  ✅ res.body.largeDouble eq 12345.678901234567
  ✅ res.body.largeDouble isNumber
  ✅ res.body.smallDouble eq 9.876e-12
  ✅ res.body.smallDouble isNumber
  ✅ res.body.booleanTrue eq true
  ✅ res.body.booleanFalse eq false

✅ echo/echo plaintext

https://testbench-sanity.usebruno.com/api/echo/text
  ✅ res.status eq 200
  ✅ should return plain text

✅ echo/echo xml parsed

https://testbench-sanity.usebruno.com/api/echo/xml-parsed
  ✅ res.status eq 200
  ✅ should return parsed xml

✅ echo/echo xml parsed(self closing tags)

https://testbench-sanity.usebruno.com/api/echo/xml-parsed
  ✅ res.status eq 200
  ✅ should return parsed xml

✅ graphql/spacex

https://spacex-production.up.railway.app/
  ✅ res.status eq 200

✅ preview/html/bruno

https://www.usebruno.com
  ✅ res.status eq 200
  ✅ should return parsed xml

✅ preview/image/bruno

https://www.usebruno.com/favicon.ico
  ✅ should return parsed xml

✅ redirects/Disable Redirect

https://testbench-sanity.usebruno.com/redirect-to-ping
  ✅ res.status 302
  ✅ should disable redirect to ping

✅ redirects/Test Redirect

https://testbench-sanity.usebruno.com/redirect-to-ping
  ✅ res.status 200
  ✅ res.body pong
  ✅ should redirect to ping

✅ scripting/api/bru/getCollectionVar

https://testbench-sanity.usebruno.com/ping
  ✅ should get collection var in scripts

✅ scripting/api/bru/getEnvName

https://testbench-sanity.usebruno.com/ping
  ✅ should get env name in scripts

✅ scripting/api/bru/getEnvVar

https://testbench-sanity.usebruno.com/ping
  ✅ should get env var in scripts

✅ scripting/api/bru/getFolderVar

https://testbench-sanity.usebruno.com/ping
  ✅ should get folder var in scripts

✅ scripting/api/bru/getProcessEnv

https://testbench-sanity.usebruno.com/ping
  ✅ bru.getProcessEnv()

✅ scripting/api/bru/getRequestVar

https://testbench-sanity.usebruno.com/ping
  ✅ should get request var in scripts

✅ scripting/api/bru/getVar

https://testbench-sanity.usebruno.com/ping
  ✅ should get var in scripts

✅ scripting/api/bru/setEnvVar

https://testbench-sanity.usebruno.com/ping
  ✅ should set env var in scripts

✅ scripting/api/bru/setVar

https://testbench-sanity.usebruno.com/ping
  ✅ should get var in scripts

✅ scripting/api/req/getBody

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ req.getBody()

✅ scripting/api/req/getHeader

https://testbench-sanity.usebruno.com/ping
  ✅ res.status eq 200
  ✅ res.body eq pong
  ✅ req.getHeader(name)

✅ scripting/api/req/getHeaders

https://testbench-sanity.usebruno.com/ping
  ✅ res.status eq 200
  ✅ res.body eq pong
  ✅ req.getHeaders()

✅ scripting/api/req/getMethod

https://testbench-sanity.usebruno.com/ping
  ✅ res.status eq 200
  ✅ res.body eq pong
  ✅ req.getMethod()()

✅ scripting/api/req/getUrl

https://testbench-sanity.usebruno.com/ping
  ✅ res.status eq 200
  ✅ res.body eq pong
  ✅ req.getUrl()

✅ scripting/api/req/setBody

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ req.setBody()

✅ scripting/api/req/setHeader

https://testbench-sanity.usebruno.com/ping
  ✅ res.status eq 200
  ✅ res.body eq pong
  ✅ req.setHeader(name)

✅ scripting/api/req/setHeaders

https://testbench-sanity.usebruno.com/ping
  ✅ res.status eq 200
  ✅ res.body eq pong
  ✅ req.setHeaders()

✅ scripting/api/req/setMethod

https://testbench-sanity.usebruno.com/ping
  ✅ res.status eq 200
  ✅ res.body eq pong
  ✅ req.setMethod()()

✅ scripting/api/req/setUrl

https://testbench-sanity.usebruno.com/ping
  ✅ res.status eq 200
  ✅ res.body eq pong
  ✅ req.setUrl()

✅ scripting/api/res/getBody

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ res.getBody()

✅ scripting/api/res/getHeader

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ res.getHeader(name)

✅ scripting/api/res/getHeaders

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ res.getHeaders(name)

✅ scripting/api/res/getResponseTime

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ res.getResponseTime()

✅ scripting/api/res/getStatus

https://testbench-sanity.usebruno.com/ping
  ✅ res.status eq 200
  ✅ res.body eq pong
  ✅ res.getStatus()

✅ scripting/inbuilt modules/axios/axios-pre-req-script

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ req.getBody()

✅ scripting/inbuilt modules/crypto-js/crypto-js-pre-request-script

https://testbench-sanity.usebruno.com/ping
  ✅ crypto message

✅ scripting/inbuilt modules/nanoid/nanoid

https://testbench-sanity.usebruno.com/ping
  ✅ nanoid var

✅ scripting/inbuilt modules/uuid/uuid

https://testbench-sanity.usebruno.com/ping
  ✅ uuid var

✅ scripting/js/data types

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ data types check via bru var

✅ scripting/js/data types - request vars

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ req.body.boolean isBoolean false
  ✅ req.body.number_1 isNumber 1
  ✅ req.body.undefined isUndefined undefined
  ✅ req.body.string isString bruno
  ✅ req.body.null isNull null
  ✅ req.body.array isArray
  ✅ req.body.boolean eq false
  ✅ req.body.number_1 eq 1
  ✅ req.body.undefined eq undefined
  ✅ req.body.string eq bruno
  ✅ req.body.null eq null
  ✅ req.body.number_2 eq 0
  ✅ req.body.number_3 eq -1
  ✅ req.body.number_2 isNumber
  ✅ req.body.number_3 isNumber

✅ scripting/js/folder-collection script-tests

https://echo.usebruno.com
  ✅ should get the header value set at collection level
  ✅ should get the header value set at folder level
  ✅ folder level test - should get the var that was set by the folder script
  ✅ collection level test - should get the var that was set by the collection script

✅ scripting/js/setTimeout

https://testbench-sanity.usebruno.com/ping
  ✅ setTimeout()

✅ scripting/local modules/invalid and valid module imports

https://testbench-sanity.usebruno.com/ping
  ✅ invalid_module_error_thrown eq true
  ✅ valid_module_no_error eq true

✅ scripting/local modules/sum

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ should return json
  ✅ should return json
  ✅ should return json

✅ scripting/local modules/sum (without js extn)

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ should return json

✅ scripting/npm modules/fakerjs

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ should return json

✅ string interpolation/env vars

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ should return json

✅ string interpolation/missing values

https://testbench-sanity.usebruno.com/api/echo/json?foo={{undefinedVar}}
  ✅ res.status eq 200
  ✅ should return json

✅ string interpolation/process env vars

https://testbench-sanity.usebruno.com/api/echo/json
  ✅ res.status eq 200
  ✅ should return json

✅ string interpolation/runtime vars

https://testbench-sanity.usebruno.com/api/echo/text
  ✅ res.status eq 200
  ✅ should return json