Skip to content

Commit

Permalink
remove duplication of tests between client/server sub-folders
Browse files Browse the repository at this point in the history
  • Loading branch information
nick-funk committed Jul 18, 2023
1 parent 840fdc8 commit 1a63f54
Show file tree
Hide file tree
Showing 22 changed files with 6 additions and 326 deletions.
3 changes: 0 additions & 3 deletions client/config/jest.cache.config.js

This file was deleted.

5 changes: 1 addition & 4 deletions client/config/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
module.exports = {
projects: [
"<rootDir>/jest/client.config.js",
"<rootDir>/jest/server.config.js",
],
projects: ["<rootDir>/jest/client.config.js"],
};
3 changes: 0 additions & 3 deletions client/config/jest.server.config.js

This file was deleted.

15 changes: 0 additions & 15 deletions client/config/paths.cache.ts

This file was deleted.

15 changes: 0 additions & 15 deletions client/config/paths.server.ts

This file was deleted.

8 changes: 4 additions & 4 deletions client/graphql.config.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
projects:
tenant:
schema:
- './src/core/server/graph/schema/schema.graphql'
- '../server/src/core/server/graph/schema/schema.graphql'
stream:
schema:
- './src/core/server/graph/schema/schema.graphql'
- '../server/src/core/server/graph/schema/schema.graphql'
- './src/core/client/framework/lib/relay/local.graphql'
- './src/core/client/stream/local/local.graphql'
- './relay-compiler-directives-v10.0.1.graphql'
Expand All @@ -16,7 +16,7 @@ projects:
useSchemaFileDefinitions: true
admin:
schema:
- './src/core/server/graph/schema/schema.graphql'
- '../server/src/core/server/graph/schema/schema.graphql'
- './src/core/client/framework/lib/relay/local.graphql'
- './src/core/client/admin/local/local.graphql'
- './relay-compiler-directives-v10.0.1.graphql'
Expand All @@ -28,7 +28,7 @@ projects:
useSchemaFileDefinitions: true
auth:
schema:
- './src/core/server/graph/schema/schema.graphql'
- '../server/src/core/server/graph/schema/schema.graphql'
- './src/core/client/framework/lib/relay/local.graphql'
- './src/core/client/auth/local/local.graphql'
- './relay-compiler-directives-v10.0.1.graphql'
Expand Down
39 changes: 0 additions & 39 deletions client/scripts/test.cache.js

This file was deleted.

32 changes: 0 additions & 32 deletions client/scripts/testServer.js

This file was deleted.

3 changes: 0 additions & 3 deletions server/config/jest.client.admin.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions server/config/jest.client.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions server/config/jest.client.other.config.js

This file was deleted.

3 changes: 0 additions & 3 deletions server/config/jest.client.stream.config.js

This file was deleted.

5 changes: 1 addition & 4 deletions server/config/jest.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
module.exports = {
projects: [
"<rootDir>/jest/client.config.js",
"<rootDir>/jest/server.config.js",
],
projects: ["<rootDir>/jest/server.config.js"],
};
15 changes: 0 additions & 15 deletions server/config/paths.client.admin.ts

This file was deleted.

15 changes: 0 additions & 15 deletions server/config/paths.client.other.ts

This file was deleted.

15 changes: 0 additions & 15 deletions server/config/paths.client.stream.ts

This file was deleted.

15 changes: 0 additions & 15 deletions server/config/paths.client.ts

This file was deleted.

36 changes: 0 additions & 36 deletions server/graphql.config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,39 +2,3 @@ projects:
tenant:
schema:
- './src/core/server/graph/schema/schema.graphql'
stream:
schema:
- './src/core/server/graph/schema/schema.graphql'
- './src/core/client/framework/lib/relay/local.graphql'
- './src/core/client/stream/local/local.graphql'
- './relay-compiler-directives-v10.0.1.graphql'
documents:
- './src/core/client/stream/**/*.ts'
- './src/core/client/stream/**/*.tsx'
extensions:
languageService:
useSchemaFileDefinitions: true
admin:
schema:
- './src/core/server/graph/schema/schema.graphql'
- './src/core/client/framework/lib/relay/local.graphql'
- './src/core/client/admin/local/local.graphql'
- './relay-compiler-directives-v10.0.1.graphql'
documents:
- './src/core/client/admin/**/*.ts'
- './src/core/client/admin/**/*.tsx'
extensions:
languageService:
useSchemaFileDefinitions: true
auth:
schema:
- './src/core/server/graph/schema/schema.graphql'
- './src/core/client/framework/lib/relay/local.graphql'
- './src/core/client/auth/local/local.graphql'
- './relay-compiler-directives-v10.0.1.graphql'
documents:
- './src/core/client/auth/**/*.ts'
- './src/core/client/auth/**/*.tsx'
extensions:
languageService:
useSchemaFileDefinitions: true
3 changes: 0 additions & 3 deletions server/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,6 @@
"start": "NODE_ENV=production node dist/index.js",
"test": "node --trace-warnings scripts/test.js --watch",
"test:server": "node --trace-warnings scripts/testServer.js",
"test:client:stream": "node --trace-warnings scripts/testClient.stream.js",
"test:client:admin": "node --trace-warnings scripts/testClient.admin.js",
"test:client:other": "node --trace-warnings scripts/testClient.other.js",
"test:cache": "node --trace-warnings scripts/test.cache.js --env=jsdom",
"tscheck:client": "tsc --project ./src/core/client/tsconfig.json --noEmit",
"tscheck:scripts": "tsc --project ./tsconfig.json --noEmit",
Expand Down
32 changes: 0 additions & 32 deletions server/scripts/testClient.admin.js

This file was deleted.

32 changes: 0 additions & 32 deletions server/scripts/testClient.other.js

This file was deleted.

32 changes: 0 additions & 32 deletions server/scripts/testClient.stream.js

This file was deleted.

0 comments on commit 1a63f54

Please sign in to comment.