0.0.15 • Published 2 years ago

graphql-testgen v0.0.15

Weekly downloads
-
License
ISC
Repository
-
Last release
2 years ago

Graphql API-tests generator

Based on your schema.

🚧 Early development stage

Commands

graphql-testgen gen 

Arguments

flagsargumentsaliasdescription
--configpath-cPath to config file an example is displayed at Configurationusage: -c __tests__/api/testgen.jsdefault: ./testgen.js
--schema-spath to schema file or url path to schemausage: -s __tests__/api/schema.graphqldefault: http://localhost:3000/graphql
--output-opath to outputusage: -o __tests__/generated/default: __tests__/generated/
--mocks-mpath to mocks usage: -m __test__/mocksdefault: __tests__/api/mocks
--append-a-append to existing files usage: -adefault: false

Configuration

Configuration file testgen.js

module.exports = {
  schemaPath: 'http://localhost:3000/graphql',
  outputDir: '__tests__/generated/',
  mockDir: '__tests__/api/mocks/',
  depth: 4,
}
0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago