This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import { runTestCases } from './test-runner'; | |
| const testCases = [ | |
| { | |
| id: 'getBooking', | |
| query: ` | |
| query ($id: Int!) { | |
| getBooking (id: $id) { | |
| id | |
| cartReference |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Test App | |
| on: [push] | |
| jobs: | |
| build: | |
| timeout-minutes: 10 | |
| runs-on: ubuntu-latest | |
| strategy: |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - name: Run API in background | |
| working-directory: packages/api | |
| run: | | |
| yarn install | |
| yarn mock & | |
| env: | |
| SOME_ENV: 1234 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const { spawn } = require('child_process'); | |
| const watch = require('node-watch'); | |
| let commandComplete = true; | |
| watch([ | |
| './src', | |
| 'graphcool.yml', | |
| 'types.graphql' | |
| ], { recursive: true }, function(evt, name) { | |
| if (!commandComplete) { |
NewerOlder