mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
Merge remote-tracking branch 'matheusccastro/update-node-18' into update-node-18
This commit is contained in:
@@ -15,7 +15,14 @@ describe("dynamic import(...)", function () {
|
||||
maybeClearDynamicImportCache();
|
||||
|
||||
it("ignores bad __meteor__/dynamic-import/fetch requests (#10147)", function () {
|
||||
return fetch(Meteor.absoluteUrl("/__meteor__/dynamic-import/fetch"), {
|
||||
// using localhost gives an issue on Windows
|
||||
// https://github.com/node-fetch/node-fetch/issues/1624
|
||||
// will replace with localhost once the issue is resolved
|
||||
// workaround is to use 127.0.0.1 instead of localhost
|
||||
const localhost = Meteor.absoluteUrl("/__meteor__/dynamic-import/fetch", {
|
||||
replaceLocalhost: true // https://docs.meteor.com/api/core.html#Meteor-absoluteUrl
|
||||
});
|
||||
return fetch(localhost, {
|
||||
// POST request with empty body.
|
||||
method: "POST"
|
||||
}).then(async (res) => {
|
||||
|
||||
Reference in New Issue
Block a user