Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>QUnit snippetsNew to Visual Studio Code? Get it now.
QUnit snippets

QUnit snippets

shamrt

|
971 installs
| (0) | Free
VS Code snippets for the QUnit JavaScript testing framework
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

QUnit Snippets for Atom

VS Code Snippets for the QUnit Javascript Testing framework.

Borrows from the QUnit snippets for Atom created by Taylon Silmer.

Snippets

Below is a list of all available snippets and the triggers of each one. The → means the TAB key.

Tests

Trigger Content
module→ module block
test→ test block
atest→ test block (async)
skip→ skip test block

Asserts

Trigger Content
equal→ assert.equal
deepEqual→ assert.deepEqual
notDeepEqual→ assert.notDeepEqual
notEqual→ assert.notEqual
notPropEqual→ assert.notPropEqual
notStrictEqual→ assert.notStrictEqual
ok→ assert.ok
notOk→ assert.notOk
propEqual→ assert.propEqual
strictEqual→ assert.strictEqual
throws→ assert.throws
async→ assert.async
expect→ assert.expect

Callbacks

Trigger Content
beforeEach→ hooks.beforeEach
before→ hooks.before
afterEach→ hooks.afterEach
after→ hooks.after
abeforeEach→ hooks.beforeEach (async)
abefore→ hooks.before (async)
aafterEach→ hooks.afterEach (async)
aafter→ hooks.after (async)
begin→ begin
done→ done
moduleDone→ moduleDone
moduleStart→ moduleStart
testDone→ testDone
testStart→ testStart
qulog→ log

Configuration

Trigger Content
dparse dump.parse

License

MIT © Shane Martin

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft