
Research
/Security News
Fake imToken Chrome Extension Steals Seed Phrases via Phishing Redirects
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.
@instructure/ui-testbed
Advanced tools
Creates a sandbox and provides utilities for testing UI code.
yarn add --dev @instructure/ui-testbed
Tests using the ui-testbed are written using the mocha testing framework and chai bdd style assertions.
The Testbed handles all of the common setup and teardown for your test.
It also provides some utilities for rendering components, updating props and stubbing out functions.
const testbed = new Testbed(<MyComponent prop="foo" />)
const subject = testbed.render()
The render function returns the component under test wrapped in a enzyme object that you can use to query the DOM and/or the component tree rendered by your component. See the enzyme and chai documentation for more details on how to write assertions.
subject.setProps({
someProp: 'someNewValue'
}, () => {
// assert something after props have been updated
done()
})
const onClick = testbed.stub()
const subject = testbed.render({
onClick
})
subject.find('input').simulate('click')
expect(onClick).to.have.been.called()
The testbed provides a reference to a sinon sandbox that you can use to stub out functions for your tests. See the sinon documentation for more details.
it.only('should do something', function () {
...
})
or
describe.only('with some context', function () {
...
})
it('should be accessible', function (done) {
const subject = testbed.render()
subject.should.be.accessible(done)
})
A custom chai assertion is also provided that wraps the axe-core library to test that your component meets the configured accessibility standards. Note that you have to provide a callback because this runs asynchronously. See the mocha and axe-core documentation for more details.
FAQs
A test utility library for UI components
We found that @instructure/ui-testbed demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 35 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Research
/Security News
Mixed-script homoglyphs and a lookalike domain mimic imToken’s import flow to capture mnemonics and private keys.

Security News
Latio’s 2026 report recognizes Socket as a Supply Chain Innovator and highlights our work in 0-day malware detection, SCA, and auto-patching.

Company News
Join Socket for live demos, rooftop happy hours, and one-on-one meetings during BSidesSF and RSA 2026 in San Francisco.