Skip to content

Commit 40ef6b9

Browse files
authored
Refactor load testing (#52)
* Start refactoring * Rename method * More refactor * Add GH workflow * Fix identation * Fix workflow * Add missing step * Install GraphQL * Add tests * Remove TravisCI * Use queryName * Add TS * Update Prettier * Add mocha types * Add GraphQL * Generate variables * 2.0.0-beta.0 * 1.0.0-beta.0 * Update examples * 1.0.0-beta.1 * Support multiples args for query * Update TS validation * Update readme, update query name * 1.0.0-beta.2 * Update readme
1 parent 09360d1 commit 40ef6b9

34 files changed

+5921
-1256
lines changed

Diff for: .eslintignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
2+
node_modules/**
3+
examples/**

Diff for: .eslintrc.js

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
module.exports = {
2+
parser: '@typescript-eslint/parser',
3+
extends: [
4+
'plugin:@typescript-eslint/recommended',
5+
'prettier',
6+
'prettier/@typescript-eslint',
7+
],
8+
parserOptions: {
9+
ecmaVersion: 6,
10+
sourceType: 'module',
11+
ecmaFeatures: {
12+
jsx: true,
13+
},
14+
},
15+
rules: {
16+
'no-redeclare': 'off',
17+
'no-empty': 'off',
18+
'no-console': 'off',
19+
'no-extra-boolean-cast': 'off',
20+
'padding-line-between-statements': 'off',
21+
'no-unused-vars': 'off',
22+
'no-useless-constructor': 'off',
23+
'@typescript-eslint/no-object-literal-type-assertion': 'off',
24+
'@typescript-eslint/explicit-function-return-type': 'off',
25+
'@typescript-eslint/explicit-member-accessibility': 'off',
26+
'@typescript-eslint/no-non-null-assertion': 'off',
27+
'@typescript-eslint/no-explicit-any': 'off',
28+
'@typescript-eslint/no-var-requires': 'off',
29+
'@typescript-eslint/prefer-interface': 'off',
30+
'@typescript-eslint/camelcase': 'off',
31+
'@typescript-eslint/array-type': 'off',
32+
'@typescript-eslint/no-use-before-define': 'off',
33+
'@typescript-eslint/no-empty-interface': 'off',
34+
'@typescript-eslint/no-parameter-properties': 'off',
35+
'@typescript-eslint/no-namespace': 'off',
36+
'@typescript-eslint/no-triple-slash-reference': 'off',
37+
'@typescript-eslint/no-unused-vars': [
38+
'error',
39+
{
40+
vars: 'all',
41+
args: 'none',
42+
ignoreRestSiblings: true,
43+
},
44+
],
45+
},
46+
env: {
47+
node: true,
48+
},
49+
}

Diff for: .github/workflows/tests.yml

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Run tests
2+
3+
on: [push]
4+
5+
jobs:
6+
build:
7+
name: Tests
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v1
11+
- uses: actions/setup-node@v1
12+
with:
13+
node-version: 10.x
14+
- name: Install dependencies
15+
run: npm install
16+
- name: Build TS
17+
run: npm build
18+
- name: Check Prettier
19+
run: npm run prettier:check
20+
- name: Run tests
21+
run: npm run test

Diff for: .gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
/node_modules
22
.vscode
33
.nyc_output
4-
.DS_Store
4+
.DS_Store
5+
/lib

Diff for: .travis.yml

-12
This file was deleted.

0 commit comments

Comments
 (0)