@@ -86,7 +86,11 @@ test('ensure that instanceof works accross different installations of the fastif
8686 const path = require('node:path')
8787 const { createError, FastifyError } = require('fastify-error')
8888 const { foo } = require('dep')
89-
89+
90+ console.log({
91+ actual: require.resolve('fastify-error'),
92+ expected: path.resolve('${ testCwd } ', 'node_modules', 'fastify-error', 'index.js'),
93+ })
9094 // Ensure that fastify-error is required from the node_modules directory of the test-project
9195 if (require.resolve('fastify-error') !== path.resolve('${ testCwd } ', 'node_modules', 'fastify-error', 'index.js')) {
9296 throw new Error('fastify-error should be required from the node_modules directory of the test-project')
@@ -126,6 +130,11 @@ test('ensure that instanceof works accross different installations of the fastif
126130 const path = require('node:path')
127131 const { createError } = require('fastify-error')
128132
133+ console.log({
134+ actual: require.resolve('fastify-error'),
135+ expected: path.resolve('${ testCwd } ','node_modules', 'dep', 'node_modules', 'fastify-error', 'index.js'),
136+ })
137+
129138 // Ensure that fastify-error is required from the node_modules directory of dep
130139 if (require.resolve('fastify-error') !== path.resolve('${ testCwd } ','node_modules', 'dep', 'node_modules', 'fastify-error', 'index.js')) {
131140 throw new Error('fastify-error should be required from the node_modules directory of dep')
0 commit comments