forked from redwoodjs/redwood
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:redwoodjs/redwood into fix/generate…
…-types-on-setup-auth * 'main' of github.com:redwoodjs/redwood: (33 commits) fix(generators): Dont set tests=false in sdl generators by default (redwoodjs#6195) Harmonize optional chaining across all `hasRole` flavors & reduce duplication, avoiding errors on empty currentUser (redwoodjs#6159) Amend import order in auth templates according to ESLint rules introduced in v2.0 (redwoodjs#6059) docs(tutorial): Adds more TS hints in the toturial (redwoodjs#6115) Revert auth provider refactor (redwoodjs#6135) fix(deps): update docusaurus monorepo to v2.0.1 (redwoodjs#6176) fix(deps): update typescript-eslint monorepo to v5.33.0 (redwoodjs#6192) fix(deps): update dependency yargs-parser to v21.1.1 (redwoodjs#6191) fix(deps): update dependency fastify to v4.4.0 (redwoodjs#6190) fix(deps): update dependency @testing-library/user-event to v14.4.2 (redwoodjs#6189) chore(deps): update dependency @types/vscode to v1.70.0 (redwoodjs#6188) chore(deps): update dependency @types/prettier to v2.7.0 (redwoodjs#6187) fix(deps): update dependency systeminformation to v5.12.4 (redwoodjs#6186) chore(deps): update dependency @clerk/types to v2.21.0 (redwoodjs#6179) chore(deps): update dependency lerna to v5.4.0 (redwoodjs#6180) fix(deps): update prisma monorepo to v4.1.1 (redwoodjs#6181) chore(deps): update dependency @clerk/clerk-js to v3.17.0 (redwoodjs#6178) fix(deps): update storybook monorepo to v6.5.10 (redwoodjs#6177) fix(deps): update dependency @actions/core to v1.9.1 (redwoodjs#6175) chore(deps): update dependency magic-sdk to v9 (redwoodjs#6138) ...
- Loading branch information
Showing
116 changed files
with
5,997 additions
and
3,713 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "check_test_project_fixture", | ||
"private": true, | ||
"dependencies": { | ||
"@actions/core": "1.9.0", | ||
"@actions/core": "1.9.1", | ||
"@actions/exec": "1.1.1" | ||
}, | ||
"packageManager": "[email protected]" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,7 +2,7 @@ | |
"name": "only_doc_changes", | ||
"private": true, | ||
"dependencies": { | ||
"@actions/core": "1.9.0", | ||
"@actions/core": "1.9.1", | ||
"@actions/exec": "1.1.1" | ||
}, | ||
"packageManager": "[email protected]" | ||
|
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
34 changes: 34 additions & 0 deletions
34
__fixtures__/test-project/api/db/migrations/20220809160848_create_post_user/migration.sql
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,34 @@ | ||
-- CreateTable | ||
CREATE TABLE "UserExample" ( | ||
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
"email" TEXT NOT NULL, | ||
"name" TEXT | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "Post" ( | ||
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
"title" TEXT NOT NULL, | ||
"body" TEXT NOT NULL, | ||
"authorId" INTEGER NOT NULL, | ||
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP, | ||
CONSTRAINT "Post_authorId_fkey" FOREIGN KEY ("authorId") REFERENCES "User" ("id") ON DELETE RESTRICT ON UPDATE CASCADE | ||
); | ||
|
||
-- CreateTable | ||
CREATE TABLE "User" ( | ||
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
"email" TEXT NOT NULL, | ||
"hashedPassword" TEXT NOT NULL, | ||
"fullName" TEXT NOT NULL, | ||
"salt" TEXT NOT NULL, | ||
"resetToken" TEXT, | ||
"resetTokenExpiresAt" DATETIME, | ||
"roles" TEXT | ||
); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "UserExample_email_key" ON "UserExample"("email"); | ||
|
||
-- CreateIndex | ||
CREATE UNIQUE INDEX "User_email_key" ON "User"("email"); |
8 changes: 8 additions & 0 deletions
8
__fixtures__/test-project/api/db/migrations/20220809160910_create_contact/migration.sql
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,8 @@ | ||
-- CreateTable | ||
CREATE TABLE "Contact" ( | ||
"id" INTEGER NOT NULL PRIMARY KEY AUTOINCREMENT, | ||
"name" TEXT NOT NULL, | ||
"email" TEXT NOT NULL, | ||
"message" TEXT NOT NULL, | ||
"createdAt" DATETIME NOT NULL DEFAULT CURRENT_TIMESTAMP | ||
); |
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
26 changes: 26 additions & 0 deletions
26
__fixtures__/test-project/api/src/services/users/users.scenarios.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,26 @@ | ||
import type { Prisma, User } from '@prisma/client' | ||
|
||
import type { ScenarioData } from '@redwoodjs/testing/api' | ||
|
||
export const standard = defineScenario<Prisma.UserCreateArgs>({ | ||
user: { | ||
one: { | ||
data: { | ||
email: 'String1552241', | ||
hashedPassword: 'String', | ||
fullName: 'String', | ||
salt: 'String', | ||
}, | ||
}, | ||
two: { | ||
data: { | ||
email: 'String7382597', | ||
hashedPassword: 'String', | ||
fullName: 'String', | ||
salt: 'String', | ||
}, | ||
}, | ||
}, | ||
}) | ||
|
||
export type StandardScenario = ScenarioData<User, 'user'> |
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 |
---|---|---|
|
@@ -21,5 +21,8 @@ | |
"prisma": { | ||
"seed": "yarn rw exec seed" | ||
}, | ||
"packageManager": "[email protected]" | ||
"packageManager": "[email protected]", | ||
"resolutions": { | ||
"jest": "28.1.3" | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
__fixtures__/test-project/web/src/components/AuthorCell/AuthorCell.test.tsx
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
2 changes: 1 addition & 1 deletion
2
__fixtures__/test-project/web/src/components/BlogPostCell/BlogPostCell.test.tsx
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
2 changes: 1 addition & 1 deletion
2
__fixtures__/test-project/web/src/components/BlogPostsCell/BlogPostsCell.test.tsx
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
2 changes: 1 addition & 1 deletion
2
...es__/test-project/web/src/components/WaterfallBlogPostCell/WaterfallBlogPostCell.test.tsx
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
Oops, something went wrong.