From 7b892868996b1490dbdcff7bf1ec3e85167aaf1f Mon Sep 17 00:00:00 2001 From: Julian Waller Date: Mon, 20 Jan 2025 16:04:39 +0000 Subject: [PATCH] feat: update supported generator versions #408 (#410) --- package.json | 2 +- test/integration.test.js | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 0e307f552..0cbfaf2c7 100644 --- a/package.json +++ b/package.json @@ -86,7 +86,7 @@ "description": "Custom location of the AsyncAPI file that you provided as an input in generation. By default it is located in the root of the output directory" } }, - "generator": ">=0.50.0 <2.0.0", + "generator": ">=0.50.0 <3.0.0", "filters": [ "@asyncapi/generator-filters" ], diff --git a/test/integration.test.js b/test/integration.test.js index 15afe2280..79076794f 100644 --- a/test/integration.test.js +++ b/test/integration.test.js @@ -5,7 +5,7 @@ const fetch = require('node-fetch'); const console = require('console'); const MAIN_TEST_RESULT_PATH = path.join('test', 'temp', ' integrationTestResult'); -const URL = 'https://raw.githubusercontent.com/asyncapi/generator/master/test/docs/ws.yml'; +const URL = 'https://raw.githubusercontent.com/asyncapi/generator/master/apps/generator/test/docs/ws.yml'; describe('template integration test using generator', () => { const generateFolderName = () => { @@ -17,6 +17,8 @@ describe('template integration test using generator', () => { it('should generate application files ', async () => { const outputDir = generateFolderName(); const asyncapiFile = await fetch(URL); + if (!asyncapiFile.ok) throw new Error('Failed to fetch the AsyncAPI file'); + const params = { server: 'localhost' };