stealjs / steal-qunit

A npm qunit project that starts tests after 'main' has loaded.

Home Page:https://stealjs.com/docs/steal-qunit.html

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Build Status npm version

steal-qunit

This provides an npm installable QUnit that fires off all tests when the app has finished loading.

Install

From NPM:

npm install steal-qunit --save-dev

Configuration

If you are using the npm no configuration is needed. Otherwise configure the paths and meta properties:

System.config({
	paths: {
		"steal-qunit/*": "path/to/steal-qunit/*.js",
		"steal-qunit": "path/to/steal-qunit/steal-qunit.js",
		"qunit/qunit/*": "path/to/qunit/qunit/*.js",
		"qunit/qunit/qunit.css": "path/to/qunit/qunit/qunit.css"
	},
	meta: {
		"qunit/qunit/qunit": {
			"format": "global",
			"exports": "QUnit",
			"deps": [
				"steal-qunit/add-dom"
			]
		}
	}
});

About

A npm qunit project that starts tests after 'main' has loaded.

https://stealjs.com/docs/steal-qunit.html


Languages

Language:JavaScript 77.9%Language:HTML 22.1%