Skip to content

Commit

Permalink
fix ember-cli-fastboot-testing should use linked fastboot@4.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Gaurav0 committed May 13, 2023
1 parent 1b6bd35 commit 89ecb72
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 11 deletions.
3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,9 @@
"release-it-lerna-changelog": "^3.1.0",
"release-it-yarn-workspaces": "^2.0.0"
},
"resolutions": {
"fastboot": "4.1.1"
},
"publishConfig": {
"registry": "https://registry.npmjs.org"
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
function initialize(instance) {
let { request } = instance.lookup('service:fastboot');
fetch.__fastbootRequest = request;
if (fetch) {
fetch.__fastbootRequest = request;
}
}

export default {
Expand Down
4 changes: 3 additions & 1 deletion test-packages/custom-fastboot-app/public/custom-index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@
<link rel="stylesheet" href="assets/custom-html-file.css">
</head>
<body>
<!-- EMBER_CLI_FASTBOOT_BODY -->
<div id="ember-testing">
<!-- EMBER_CLI_FASTBOOT_BODY -->
</div>

<script src="assets/vendor.js"></script>
<script src="assets/custom-html-file.js"></script>
Expand Down
8 changes: 2 additions & 6 deletions test-packages/ember-cli-fastboot-testing-app/tests/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,12 +21,8 @@
{{content-for "body"}}
{{content-for "test-body"}}

<div id="qunit"></div>
<div id="qunit-fixture">
<div id="ember-testing-container">
<div id="ember-testing"></div>
</div>
</div>
<div id="ember-testing">
</div>

<script src="/testem.js" integrity=""></script>
<script src="{{rootURL}}assets/vendor.js"></script>
Expand Down
6 changes: 3 additions & 3 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6966,14 +6966,14 @@ fastboot-transform@^0.1.3:
convert-source-map "^1.5.1"

fastboot@^3.0.3:
version "3.3.2"
resolved "https://registry.yarnpkg.com/fastboot/-/fastboot-3.3.2.tgz#bf1ac7b01937846b63423a88138e13eb50406d2e"
integrity sha512-2NKTW32GvEsDyBrdw1trW1JsbS+9/7sAQuKwkht12mNitimRrSKVLP2AxsM/HSXQE+aiET4XCfKdyeIy0kQbKQ==
version "4.1.1"
dependencies:
abortcontroller-polyfill "^1.7.3"
chalk "^4.1.2"
cookie "^0.4.1"
debug "^4.3.3"
jsdom "^19.0.0"
node-fetch "^2.6.7"
resolve "^1.22.0"
simple-dom "^1.4.0"
source-map-support "^0.5.21"
Expand Down

0 comments on commit 89ecb72

Please sign in to comment.