Files
kucherenko__jscpd/fixtures/graphql/file1.graphql
apk 64e471e2b0 test: raise coverage to 96%+ on @jscpd/finder and 98%+ on apps/jscpd
Adds 92 new tests (178 → 270 total) with zero source-file modifications:

- packages/finder: 13 new test files covering all reporters, subscribers,
  validators, hooks, utils, options, cloneFound, getFilesToDetect, and
  InFilesDetector; shared buildClone() factory helper
- apps/jscpd: 3 new test files (options-unit, print, store) plus extensions
  to formats, modes, and options integration tests
- vitest.config.ts added to both packages to restrict coverage.include
  to src/** only, eliminating bin/ and prism.js noise
- Fixes 3 tokenizer bugs (trailing space in format lookup, tokenization
  edge cases) uncovered by the new format fixture suite
- Adds fixture files for 40+ language formats to support formats.test.ts
2026-05-09 15:00:38 +02:00

67 lines
988 B
GraphQL

type Query {
user(id: ID!): User
users(limit: Int, offset: Int, role: Role): [User!]!
product(id: ID!): Product
products(categoryId: ID, limit: Int): [Product!]!
}
type Mutation {
createUser(input: CreateUserInput!): User!
updateUser(id: ID!, input: UpdateUserInput!): User!
deleteUser(id: ID!): Boolean!
createOrder(input: CreateOrderInput!): Order!
}
type User {
id: ID!
name: String!
email: String!
role: Role!
orders: [Order!]!
createdAt: String!
updatedAt: String!
}
type Order {
id: ID!
userId: ID!
total: Float!
status: OrderStatus!
items: [OrderItem!]!
createdAt: String!
}
type OrderItem {
id: ID!
productId: ID!
quantity: Int!
price: Float!
}
enum Role {
ADMIN
USER
GUEST
}
enum OrderStatus {
PENDING
PROCESSING
SHIPPED
DELIVERED
CANCELLED
}
input CreateUserInput {
name: String!
email: String!
password: String!
role: Role
}
input UpdateUserInput {
name: String
email: String
role: Role
}