Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create and export ES module along side umd bundle #151

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Adjust test setup to load ES module source code
blikblum committed Jun 28, 2021
commit bdb07e171f4cc10c01fc924b687fd0a9614b94a6
2 changes: 1 addition & 1 deletion .mocharc.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
"use strict";

module.exports = {
require: ["./test/common"]
require: ["./test/setup.mjs"]
};
5 changes: 0 additions & 5 deletions test/common.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,5 @@
"use strict";

var chai = require("chai");
var sinonChai = require("../lib/sinon-chai");
chai.use(sinonChai);
chai.should();

exports.swallow = function (thrower) {
try {
thrower();
4 changes: 4 additions & 0 deletions test/setup.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import chai from "chai";
import sinonChai from "../lib/sinon-chai.mjs";
chai.use(sinonChai);
chai.should();