Skip to content

Qunit v2 has incorrectly configured exports #1724

@NullVoxPopuli

Description

Tell us about your runtime:

  • QUnit version: v2
  • Which environment are you using? (e.g., browser, Node): browser
  • How are you running QUnit? (e.g., QUnit CLI, Grunt, Karma, manually in browser): jsbin

Repro: https://jsbin.com/fipayiy/edit?html,output

What are you trying to do?

import { module, test } from 'qunit'

but this is how you have to use module / test:

import QUnit from 'qunit';

// this is needed because QUnit didn't properly configure their exports.
// they _only_ have a default export.
const { module, test } = QUnit;

Repro: https://jsbin.com/fipayiy/edit?html,output

Metadata

Assignees

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions