Skip to content

@jspsych/test-utils@1.3.0

Choose a tag to compare

@github-actions github-actions released this 26 Jul 13:12
04db97d

Minor Changes

  • #3707 f14e9784fd49f36ac9051c6d5cdbd7223f391a9b Thanks @jodeleeuw! - The keyDown() and keyUp() helpers accept an optional second argument that sets the code property (the physical key) on the dispatched KeyboardEvent, in addition to the existing key argument. A new windowBlur() helper dispatches a blur event on window and flushes pending promises, for testing behavior that depends on the page losing focus.