diff --git a/packages/templates/clients/js/websocket/test/snapshot.test.js b/packages/templates/clients/js/websocket/test/snapshot.test.js index 730dd8ccd..5b121acc8 100644 --- a/packages/templates/clients/js/websocket/test/snapshot.test.js +++ b/packages/templates/clients/js/websocket/test/snapshot.test.js @@ -7,7 +7,7 @@ const { readFile } = require('fs').promises; const Generator = require('@asyncapi/generator'); const asyncapi_v3_path_postman = path.resolve(__dirname, './__fixtures__/asyncapi-postman-echo.yml'); const asyncapi_v3_path_hoppscotch = path.resolve(__dirname, './__fixtures__/asyncapi-hoppscotch-echo.yml'); -const testResultPath = path.resolve('tests/temp/snapshotTestResult'); +const testResultPath = path.resolve(__dirname, './temp/snapshotTestResult'); const template = './'; describe('testing if generated client match snapshot', () => {