From f405ce63cbea61608368c613319b73949014043d Mon Sep 17 00:00:00 2001 From: Jan Bobisud Date: Fri, 8 Jul 2022 07:11:40 +0200 Subject: [PATCH] Fix Legacy Mocha Tests --- packages/ember-cli-fastboot/test/request-details-test.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/packages/ember-cli-fastboot/test/request-details-test.js b/packages/ember-cli-fastboot/test/request-details-test.js index 672b397b..cc0d5e2c 100644 --- a/packages/ember-cli-fastboot/test/request-details-test.js +++ b/packages/ember-cli-fastboot/test/request-details-test.js @@ -1,5 +1,6 @@ 'use strict'; +const path = require('path'); const chai = require('chai'); const expect = chai.expect; const RSVP = require('rsvp'); @@ -11,8 +12,8 @@ function injectMiddlewareAddon(app) { pkg.devDependencies['body-parser'] = process.env.npm_package_devDependencies_body_parser; pkg.dependencies = pkg.dependencies || {}; - pkg.dependencies['fastboot-express-middleware'] = - process.env.npm_package_dependencies_fastboot_express_middleware; + pkg.dependencies['fastboot'] = `file:${path.resolve(__dirname, '../../fastboot')}` + pkg.dependencies['fastboot-express-middleware'] = `file:${path.resolve(__dirname, '../../fastboot-express-middleware')}` pkg['ember-addon'] = { paths: ['lib/post-middleware'], };