Skip to content

Commit 8faaaeb

Browse files
committed
use requirejs
1 parent 8fb401e commit 8faaaeb

File tree

3 files changed

+27
-4
lines changed

3 files changed

+27
-4
lines changed

package.json

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,13 @@
4040
"gulp-tslint": "6.0.1",
4141
"gulp-uglify": "1.5.4",
4242
"gulp-wrap-umd": "0.2.1",
43+
"mock-fs": "3.11.0",
44+
"path": "^0.12.7",
45+
"requirejs": "^2.3.2",
46+
"rewire": "^2.5.2",
4347
"rimraf": "2.5.3",
4448
"source-map-support": "0.4.2",
45-
"mock-fs": "3.11.0",
49+
"systemjs": "^0.19.39",
4650
"tracekit": "0.4.3",
4751
"tslint": "3.13.0",
4852
"tsproject": "1.2.1",

test.config.js

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
require.config({
2+
baseUrl: 'node_modules',
3+
paths: {
4+
chai: 'chai/chai',
5+
TraceKit: 'tracekit/tracekit'
6+
}
7+
});
8+
9+
require([
10+
'../dist/temp/exceptionless-spec'
11+
], function() {
12+
13+
if (typeof mochaPhantomJS !== "undefined") { mochaPhantomJS.run(); }
14+
else {
15+
16+
console.log('running mocha');
17+
mocha.run();
18+
}
19+
});

testrunner.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@
1919
<script>
2020
mocha.setup('bdd');
2121
</script>
22-
<script src="dist/temp/exceptionless-spec.js"></script>
22+
<!--<script src="dist/temp/exceptionless-spec.js"></script>-->
2323
<script>
24-
mocha.run();
24+
//mocha.run();
2525
</script>
26-
<!--<script data-main="test.config.js" src="node_modules/requirejs/require.js"></script>-->
26+
<script data-main="test.config.js" src="node_modules/requirejs/require.js"></script>
2727
</body>
2828
</html>

0 commit comments

Comments
 (0)