-
Notifications
You must be signed in to change notification settings - Fork 29
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Playwright Init: - remove Cypress and config - Install Playwright w/ defaults - Update Config with global setup/teardown - Update Config to watch for `.play` files - Update package scripts for Playwright - Update CI Workflow e2e - Update Bison CI Workflow to include e2e - New e2e Auth Specs for Admin/User - Cleanup of ENV files for Bison/Playwright/NextAuth * Misc updates: - Playwright config updated to start server - Package Scripts slimmed - Next Auth updated after bug found - example SignIn callback added for NextAuth - Playwright helper utils added - Workflows updated with new package script
- Loading branch information
Showing
51 changed files
with
996 additions
and
409 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -55,7 +55,6 @@ | |
"jest": { | ||
"testPathIgnorePatterns": [ | ||
"node_modules", | ||
"cypress", | ||
"template", | ||
"dist" | ||
] | ||
|
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
module.exports = { | ||
extends: ['plugin:echobind/react'], | ||
ignorePatterns: ['generated', 'node_modules/', 'types', 'cypress', 'scripts'], | ||
ignorePatterns: ['generated', 'node_modules/', 'types', 'scripts'], | ||
}; |
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
21 changes: 17 additions & 4 deletions
21
packages/create-bison-app/template/_.env.development.local.ejs
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 |
---|---|---|
@@ -1,6 +1,19 @@ | ||
# ENV vars here override .env.development when running locally | ||
# Include your development ENVs here | ||
|
||
# Environment variables declared in this file are automatically made available to Prisma. | ||
# See the documentation for more detail: https://pris.ly/d/prisma-schema#using-environment-variables | ||
|
||
# Prisma supports the native connection string format for PostgreSQL, MySQL and SQLite. | ||
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings | ||
|
||
# Include NODE_ENV for package script withEnv to work as expected | ||
|
||
APP_ENV="development" | ||
NODE_ENV="development" | ||
PORT=3000 | ||
BASE_URL="http://localhost:3000" | ||
|
||
DATABASE_URL="postgresql://<%= db.dev.user %><% if (db.dev.password) { %>:<%= db.dev.password %><% } %>@<%= db.dev.host %>:<%= db.dev.port %>/<%= db.dev.name %>?schema=public" | ||
NEXTAUTH_SECRET=foo | ||
NEXTAUTH_URL=http://localhost:3000 | ||
APP_ENV=development | ||
|
||
NEXTAUTH_SECRET="bisonDev" | ||
NEXTAUTH_URL="http://localhost:3000" |
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 |
---|---|---|
@@ -1,6 +1,12 @@ | ||
# ENV vars here override .env when running locally | ||
# Overwrite envs here to mimic production | ||
# Include NODE_ENV for package script withEnv to work as expected | ||
|
||
APP_ENV="production" | ||
NODE_ENV="development" # production // change if you truly want PROD | ||
PORT=3000 | ||
BASE_URL="http://localhost:3000" | ||
|
||
DATABASE_URL="postgresql://<%= db.dev.user %><% if (db.dev.password) { %>:<%= db.dev.password %><% } %>@<%= db.dev.host %>:<%= db.dev.port %>/<%= db.dev.name %>?schema=public" | ||
NEXTAUTH_SECRET="" | ||
NEXTAUTH_URL="" | ||
APP_ENV=production | ||
|
||
NEXTAUTH_SECRET="bisonProd" | ||
NEXTAUTH_URL="http://localhost:3000" |
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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
# Copy to .env.test.local to override | ||
# Include NODE_ENV for package script withEnv to work as expected | ||
|
||
APP_ENV="test" | ||
NODE_ENV="test" | ||
PORT=3001 | ||
BASE_URL="http://localhost:3001" | ||
|
||
# ENV vars here override .env when running tests | ||
DATABASE_URL="postgresql://<%= db.dev.user %><% if (db.dev.password) { %>:<%= db.dev.password %><% } %>@<%= db.dev.host %>:<%= db.dev.port %>/<%= db.test.name %>?schema=public" | ||
NEXTAUTH_SECRET=foo | ||
NEXTAUTH_URL=http://localhost:3001 | ||
APP_ENV=test | ||
|
||
NEXTAUTH_SECRET="bisonTest" | ||
NEXTAUTH_URL="http://localhost:3001" |
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 |
---|---|---|
@@ -1,7 +1,12 @@ | ||
# ENV vars here override .env.test when running locally | ||
# Include NODE_ENV for package script withEnv to work as expected | ||
|
||
APP_ENV="test" | ||
NODE_ENV="test" | ||
PORT=3001 | ||
BASE_URL="http://localhost:3001" | ||
|
||
# ENV vars here override .env when running tests | ||
DATABASE_URL="postgresql://<%= db.dev.user %><% if (db.dev.password) { %>:<%= db.dev.password %><% } %>@<%= db.dev.host %>:<%= db.dev.port %>/<%= db.test.name %>?schema=public" | ||
NEXTAUTH_SECRET=foo | ||
NEXTAUTH_URL=http://localhost:3001 | ||
APP_ENV=test | ||
|
||
NEXTAUTH_SECRET="bisonTest" | ||
NEXTAUTH_URL="http://localhost:3001" |
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 was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/create-bison-app/template/cypress/fixtures/credentials_error.json
This file was deleted.
Oops, something went wrong.
1 change: 0 additions & 1 deletion
1
packages/create-bison-app/template/cypress/fixtures/credentials_success.json
This file was deleted.
Oops, something went wrong.
9 changes: 0 additions & 9 deletions
9
packages/create-bison-app/template/cypress/fixtures/session.json
This file was deleted.
Oops, something went wrong.
6 changes: 0 additions & 6 deletions
6
packages/create-bison-app/template/cypress/fixtures/session_error.json
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.