Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
14 changes: 14 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,19 @@ jobs:
npm run test:run -- src/testing/tests/TiledComponents.test.tsx
npm run test:run -- src/testing/tests/TiledLinePlotMaker.test.tsx
npm run test:run -- src/testing/tests/Widget.test.tsx
echo "Running ophyd sim test suites..."
npm run test:run -- src/testing/tests/BeamstopModel.test.tsx
npm run test:run -- src/testing/tests/createFallbackTransport.test.ts
npm run test:run -- src/testing/tests/simCameraSocket.test.ts
npm run test:run -- src/testing/tests/ophyd-sim/dependencyGraph.test.ts
npm run test:run -- src/testing/tests/ophyd-sim/detector.test.ts
npm run test:run -- src/testing/tests/ophyd-sim/hexapod.test.ts
npm run test:run -- src/testing/tests/ophyd-sim/motor.test.ts
npm run test:run -- src/testing/tests/ophyd-sim/shutter.test.ts
npm run test:run -- src/testing/tests/ophyd-sim/signal.test.ts
npm run test:run -- src/testing/tests/ophyd-sim/state.test.ts
npm run test:run -- src/testing/tests/ophyd-sim/transport.test.ts
npm run test:run -- src/testing/tests/ophyd-sim/useOphydPVSocket.integration.test.tsx
env:
CI: true

Expand Down Expand Up @@ -206,6 +219,7 @@ jobs:
`- ${testStepStatus} **Devices** - Camera, Shutter, DeviceControllerBox, DeviceControllerBoxSimple, TableDeviceController, ControllerAbsoluteMove, ControllerRelativeMove, Hexapod, BeamEnergy`,
`- ${testStepStatus} **Services** - QueueServer, SignalMonitorPlots, Experiment`,
`- ${testStepStatus} **Misc** - IFrame, GoogleDoc, SelectDropdown, ComponentViewer, ComponentViewerUtils`,
`- ${testStepStatus} **Ophyd Sim** - beamstopModel, createFallbackTransport, simCameraSocket, dependencyGraph, detector, hexapod, motor, shutter, signal, state, transport, useOphydPVSocket`,
``,
`**Test Environment:** Node.js 20.x`,
`**Linting:** ${lintStatus} ${lintText}${lintSection}`,
Expand Down
3 changes: 3 additions & 0 deletions .storybook/preview.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,11 @@
import type { Preview } from "@storybook/react";
import "../tailwind.css";
import { withOphydSim, defaultBeamline } from "../src/lib/ophyd-sim";

const version = import.meta.env.STORYBOOK_FINCH_VERSION;
console.log(`Finch UI version ${version}`);
const preview: Preview = {
decorators: [withOphydSim(defaultBeamline)],
parameters: {
controls: {
matchers: {
Expand Down
Loading
Loading