@jspsych/new-plugin
Version:
CLI tool to create new jsPsych plugins
20 lines (15 loc) • 423 B
text/typescript
import { startTimeline } from "@jspsych/test-utils";
import _globalName_ from ".";
jest.useFakeTimers();
describe("my plugin", () => {
it("should load", async () => {
const { expectFinished, getHTML, getData, displayElement, jsPsych } = await startTimeline([
{
type: _globalName_,
parameter_name: 1,
parameter_name2: "img.png",
},
]);
await expectFinished();
});
});