-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove some hacks from the cli tests so they work with esbuild
- Loading branch information
Showing
18 changed files
with
226 additions
and
183 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
18 changes: 18 additions & 0 deletions
18
packages/core/src/scripts/tests/fixtures/basic-project/keystone.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
import { list, config } from '@keystone-6/core'; | ||
import { allowAll } from '@keystone-6/core/access'; | ||
import { text } from '@keystone-6/core/fields'; | ||
|
||
export default config({ | ||
db: { | ||
provider: 'sqlite', | ||
url: 'file:./app.db', | ||
}, | ||
lists: { | ||
Todo: list({ | ||
access: allowAll, | ||
fields: { | ||
title: text(), | ||
}, | ||
}), | ||
}, | ||
}); |
19 changes: 19 additions & 0 deletions
19
packages/core/src/scripts/tests/fixtures/basic-with-no-ui.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { list, config } from '@keystone-6/core'; | ||
import { allowAll } from '@keystone-6/core/access'; | ||
import { text } from '@keystone-6/core/fields'; | ||
|
||
export default config({ | ||
db: { | ||
provider: 'sqlite', | ||
url: 'file:./app.db', | ||
}, | ||
ui: { isDisabled: true }, | ||
lists: { | ||
Todo: list({ | ||
access: allowAll, | ||
fields: { | ||
title: text(), | ||
}, | ||
}), | ||
}, | ||
}); |
21 changes: 21 additions & 0 deletions
21
packages/core/src/scripts/tests/fixtures/generate-next-graphql-api.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { list, config } from '@keystone-6/core'; | ||
import { allowAll } from '@keystone-6/core/access'; | ||
import { text } from '@keystone-6/core/fields'; | ||
|
||
export default config({ | ||
db: { | ||
provider: 'sqlite', | ||
url: 'file:./app.db', | ||
}, | ||
lists: { | ||
Todo: list({ | ||
access: allowAll, | ||
fields: { | ||
title: text(), | ||
}, | ||
}), | ||
}, | ||
experimental: { | ||
generateNextGraphqlAPI: true, | ||
}, | ||
}); |
21 changes: 21 additions & 0 deletions
21
packages/core/src/scripts/tests/fixtures/generate-node-api.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { list, config } from '@keystone-6/core'; | ||
import { allowAll } from '@keystone-6/core/access'; | ||
import { text } from '@keystone-6/core/fields'; | ||
|
||
export default config({ | ||
db: { | ||
provider: 'sqlite', | ||
url: 'file:./app.db', | ||
}, | ||
lists: { | ||
Todo: list({ | ||
access: allowAll, | ||
fields: { | ||
title: text(), | ||
}, | ||
}), | ||
}, | ||
experimental: { | ||
generateNodeAPI: true, | ||
}, | ||
}); |
17 changes: 17 additions & 0 deletions
17
packages/core/src/scripts/tests/fixtures/no-fields-with-migrations.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
import { list, config } from '@keystone-6/core'; | ||
import { allowAll } from '@keystone-6/core/access'; | ||
|
||
export default config({ | ||
db: { | ||
provider: 'sqlite', | ||
url: 'file:./app.db', | ||
useMigrations: true, | ||
}, | ||
ui: { isDisabled: true }, | ||
lists: { | ||
Todo: list({ | ||
access: allowAll, | ||
fields: {}, | ||
}), | ||
}, | ||
}); |
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
import { list, config } from '@keystone-6/core'; | ||
import { allowAll } from '@keystone-6/core/access'; | ||
|
||
export default config({ | ||
db: { | ||
provider: 'sqlite', | ||
url: 'file:./app.db', | ||
}, | ||
ui: { isDisabled: true }, | ||
lists: { | ||
Todo: list({ | ||
access: allowAll, | ||
fields: {}, | ||
}), | ||
}, | ||
}); |
20 changes: 20 additions & 0 deletions
20
packages/core/src/scripts/tests/fixtures/one-field-with-migrations.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
import { list, config } from '@keystone-6/core'; | ||
import { allowAll } from '@keystone-6/core/access'; | ||
import { text } from '@keystone-6/core/fields'; | ||
|
||
export default config({ | ||
db: { | ||
provider: 'sqlite', | ||
url: 'file:./app.db', | ||
useMigrations: true, | ||
}, | ||
ui: { isDisabled: true }, | ||
lists: { | ||
Todo: list({ | ||
access: allowAll, | ||
fields: { | ||
title: text(), | ||
}, | ||
}), | ||
}, | ||
}); |
21 changes: 21 additions & 0 deletions
21
packages/core/src/scripts/tests/fixtures/two-fields-with-migrations.ts
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { list, config } from '@keystone-6/core'; | ||
import { allowAll } from '@keystone-6/core/access'; | ||
import { checkbox, text } from '@keystone-6/core/fields'; | ||
|
||
export default config({ | ||
db: { | ||
provider: 'sqlite', | ||
url: 'file:./app.db', | ||
useMigrations: true, | ||
}, | ||
ui: { isDisabled: true }, | ||
lists: { | ||
Todo: list({ | ||
access: allowAll, | ||
fields: { | ||
title: text(), | ||
isComplete: checkbox(), | ||
}, | ||
}), | ||
}, | ||
}); |
Oops, something went wrong.