File tree 9 files changed +23
-6
lines changed
packages/ember-cli-fastboot
fastboot/instance-initializers
ember-cli-fastboot-testing-app
9 files changed +23
-6
lines changed Original file line number Diff line number Diff line change
1
+ import fetch from 'whatwg-fetch' ;
2
+
3
+ window . fetch = fetch ;
4
+
1
5
function initialize ( instance ) {
2
6
let { request } = instance . lookup ( 'service:fastboot' ) ;
3
7
fetch . __fastbootRequest = request ;
Original file line number Diff line number Diff line change 91
91
"glob" : " ^7.1.3" ,
92
92
"loader.js" : " ^4.7.0" ,
93
93
"mocha" : " ^9.1.2" ,
94
+ "node-fetch" : " ^2.6.7" ,
94
95
"npm-run-all" : " ^4.1.5" ,
95
96
"prettier" : " ^2.5.1" ,
96
97
"qunit" : " ^2.17.2" ,
99
100
"release-it-lerna-changelog" : " ^3.1.0" ,
100
101
"request" : " ^2.88.0" ,
101
102
"rsvp" : " ^4.8.3" ,
102
- "webpack" : " ^5.58.1"
103
+ "webpack" : " ^5.58.1" ,
104
+ "whatwg-fetch" : " ^3.0.0"
103
105
},
104
106
"engines" : {
105
107
"node" : " 14.* || 16.* || >=18"
Original file line number Diff line number Diff line change 63
63
"loader.js" : " ^4.7.0" ,
64
64
"mocha" : " ^9.1.2" ,
65
65
"npm-run-all" : " ^4.1.5" ,
66
- "qunit-dom" : " ^1.2.0"
66
+ "qunit-dom" : " ^1.2.0" ,
67
+ "whatwg-fetch" : " ^3.0.0"
67
68
},
68
69
"fastbootDependencies" : [
69
70
" rsvp"
Original file line number Diff line number Diff line change 56
56
"loader.js" : " ^4.7.0" ,
57
57
"mocha" : " ^9.1.2" ,
58
58
"npm-run-all" : " ^4.1.5" ,
59
- "qunit-dom" : " ^1.2.0"
59
+ "qunit-dom" : " ^1.2.0" ,
60
+ "whatwg-fetch" : " ^3.0.0"
60
61
},
61
62
"engines" : {
62
63
"node" : " 10.* || >= 12"
Original file line number Diff line number Diff line change 49
49
"eslint-plugin-node" : " ^11.1.0" ,
50
50
"loader.js" : " ^4.7.0" ,
51
51
"npm-run-all" : " ^4.1.5" ,
52
- "qunit-dom" : " ^1.2.0"
52
+ "qunit-dom" : " ^1.2.0" ,
53
+ "whatwg-fetch" : " ^3.0.0"
53
54
},
54
55
"engines" : {
55
56
"node" : " 10.* || >= 12"
Original file line number Diff line number Diff line change 49
49
"eslint-plugin-node" : " ^11.1.0" ,
50
50
"loader.js" : " ^4.7.0" ,
51
51
"npm-run-all" : " ^4.1.5" ,
52
- "qunit-dom" : " ^1.2.0"
52
+ "qunit-dom" : " ^1.2.0" ,
53
+ "whatwg-fetch" : " ^3.0.0"
53
54
},
54
55
"ember" : {
55
56
"edition" : " octane"
Original file line number Diff line number Diff line change 21
21
{{content-for "body"}}
22
22
{{content-for "test-body"}}
23
23
24
+ < div id ="ember-testing "> </ div >
25
+
24
26
< script src ="/testem.js " integrity =""> </ script >
25
27
< script src ="{{rootURL}}assets/vendor.js "> </ script >
26
28
< script src ="{{rootURL}}assets/test-support.js "> </ script >
Original file line number Diff line number Diff line change 1
1
import Application from '../app' ;
2
2
import config from '../config/environment' ;
3
3
import { setApplication } from '@ember/test-helpers' ;
4
+ import * as QUnit from 'qunit' ;
5
+ import { setup } from 'qunit-dom' ;
4
6
import { start } from 'ember-qunit' ;
5
7
8
+ setup ( QUnit . assert ) ;
9
+
6
10
setApplication ( Application . create ( config . APP ) ) ;
7
11
8
12
start ( ) ;
Original file line number Diff line number Diff line change 48
48
"eslint-plugin-node" : " ^11.1.0" ,
49
49
"loader.js" : " ^4.7.0" ,
50
50
"npm-run-all" : " ^4.1.5" ,
51
- "qunit-dom" : " ^1.2.0"
51
+ "qunit-dom" : " ^1.2.0" ,
52
+ "whatwg-fetch" : " ^3.0.0"
52
53
},
53
54
"engines" : {
54
55
"node" : " 10.* || >= 12"
You can’t perform that action at this time.
0 commit comments