Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
refactor(test): update inline projects example
  • Loading branch information
chenjiahan committed Aug 14, 2026
commit f9ea416ba7eb0ad142a5fca50ce4bb6e85200fc9
26 changes: 0 additions & 26 deletions examples/rstest-inline-projects/rstack.config.ts

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "@examples/rstest-inline-projects",
"name": "@examples/test-inline-projects",
"private": true,
"type": "module",
"scripts": {
Expand Down
27 changes: 27 additions & 0 deletions examples/test-inline-projects/rstack.config.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
// Rstack configuration guide: https://rstack.rs/config
import { define } from 'rstack';

define.app(async () => {
const { pluginReact } = await import('@rsbuild/plugin-react');
return {
plugins: [pluginReact()],
};
});

define.test(async () => {
const { defineInlineProject } = await import('rstack/test');
return {
projects: [
defineInlineProject({
name: 'ssr',
include: ['./tests/ssr.test.tsx'],
testEnvironment: 'node',
}),
defineInlineProject({
name: 'dom',
include: ['./tests/dom.test.tsx'],
testEnvironment: 'happy-dom',
}),
],
};
});
24 changes: 21 additions & 3 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.