@embroider/try
A tiny utility to support matrix testing.
List
pnpm -s @embroider/try list
Processes your .try.mjs file and emits JSON that can be used in GitHub Actions to create your strategy.matrix.
Apply
pnpm dlx @embroider/try apply $SCENARIO_NAME
Applies a scenario to your project by editing package.json, etc. Use this before the regular pnpm install or npm install in order to test differing dependencies.
Config File: .try.mjs
export default interface {
scenarios: Scenario[];
}
interface Scenario {
name: string;
npm?: {
devDependencies: Record<string, string>;
dependencies: Record<string, string>;
peerDependencies: Record<string, string>;
overrides: Record<string, string>;
},
files?: Record<string, string>,
}