From 6fef779b22fe63b3241c432e90d887465ce9f031 Mon Sep 17 00:00:00 2001 From: Thomas Cranny Date: Fri, 1 Nov 2024 15:32:11 +1000 Subject: [PATCH] Add extra validation to TS scaffold smoke test --- packages/cli/src/smoke-tests/smoke-tests.js | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/packages/cli/src/smoke-tests/smoke-tests.js b/packages/cli/src/smoke-tests/smoke-tests.js index 1b43957a5..0987177a6 100644 --- a/packages/cli/src/smoke-tests/smoke-tests.js +++ b/packages/cli/src/smoke-tests/smoke-tests.js @@ -213,6 +213,20 @@ describe('smoke tests - setup will take some time', function () { const triggerPath = path.join(newAppDir, 'src', 'triggers', 'neat.ts'); fs.existsSync(triggerPath).should.be.true(); + + const newTriggerTest = path.join( + newAppDir, + 'src', + 'test', + 'triggers', + 'neat.test.ts' + ); + fs.existsSync(newTriggerTest).should.be.true(); + + const pkg = JSON.parse( + fs.readFileSync(appPackageJson, { encoding: 'utf8' }) + ); + pkg.name.should.containEql('scaffold-town'); }); it('zapier integrations', function () {