Skip to content
This repository has been archived by the owner on Jun 28, 2024. It is now read-only.

Commit

Permalink
chore: update .gitignore and play tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEdward162 committed Jan 14, 2021
1 parent d3b6880 commit d334020
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -105,4 +105,6 @@ dist

# yalc data
.yalc/
yalc.lock
yalc.lock

testground
14 changes: 14 additions & 0 deletions src/commands/play.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,20 @@ $ echo '<gitignore template>' > fixtures/playgrounds/${testPlaygroundName}/.giti
).resolves.toBeDefined();
}, 30000);

it.skip('creates, compiles and executes a playground on a real api', async () => {
stdout.start();
await expect(
Play.run(['initialize', testPlaygroundPath, '--providers', 'foo'])
).resolves.toBeUndefined();
await Play.run(['execute', testPlaygroundPath, '--providers', 'foo']);
stdout.stop();

expect(stdout.output).toMatch(/create_test\/foo result: Ok {/);
expect(stdout.output).toMatch(
/{ name: 'Pivni bar Diego', openingHours: 'Mo-Su,PH 16:30 - 23:45' }/
);
}, 30000);

it('cleans compilation artifacts', async () => {
const deletedFiles = [
'package-lock.json',
Expand Down

0 comments on commit d334020

Please sign in to comment.