File tree Expand file tree Collapse file tree 3 files changed +150
-64
lines changed Expand file tree Collapse file tree 3 files changed +150
-64
lines changed Original file line number Diff line number Diff line change 62
62
"ember-maybe-import-regenerator" : " ~1.0.0" ,
63
63
"ember-qunit" : " ~6.0.0" ,
64
64
"ember-resolver" : " ~8.0.3" ,
65
- "ember-sinon-qunit" : " ~6.0.0 " ,
65
+ "ember-sinon-qunit" : " 7.1.4 " ,
66
66
"ember-source" : " ~4.8.0" ,
67
67
"ember-source-channel-url" : " ~2.0.1" ,
68
68
"ember-template-lint" : " ~4.16.1" ,
75
75
"loader.js" : " ~4.7.0" ,
76
76
"qunit" : " ~2.19.2" ,
77
77
"qunit-dom" : " ~2.0.0" ,
78
+ "sinon" : " 15.2.0" ,
78
79
"webpack" : " ~5.74.0"
79
80
},
80
81
"engines" : {
Original file line number Diff line number Diff line change 1
- import sinon from 'sinon' ;
2
1
import * as Sentry from '@sentry/browser' ;
3
-
4
- /**
5
- * Stub Sentry init function before application is imported to avoid actually setting up Sentry and needing a DSN
6
- */
7
- sinon . stub ( Sentry , 'init' ) ;
8
-
2
+ import setupSinon from 'ember-sinon-qunit' ;
9
3
import Application from '../app' ;
10
4
import config from '../config/environment' ;
11
5
import { setApplication } from '@ember/test-helpers' ;
@@ -24,5 +18,7 @@ Sentry.addGlobalEventProcessor(event => {
24
18
25
19
setApplication ( Application . create ( config . APP ) ) ;
26
20
21
+ setupSinon ( ) ;
22
+
27
23
start ( ) ;
28
24
QUnit . config . ignoreGlobalErrors = true ;
You can’t perform that action at this time.
0 commit comments