mirror of
https://github.com/evroon/bracket.git
synced 2026-03-04 07:11:00 -05:00
e38a29303b3b769be63f94831edd06ecb231bbe0
Bumps [@testing-library/jest-dom](https://github.com/testing-library/jest-dom) from 5.16.5 to 6.0.0. <details> <summary>Release notes</summary> <p><em>Sourced from <a href="https://github.com/testing-library/jest-dom/releases"><code>@testing-library/jest-dom</code>'s releases</a>.</em></p> <blockquote> <h2>v6.0.0</h2> <h1><a href="https://github.com/testing-library/jest-dom/compare/v5.17.0...v6.0.0">6.0.0</a> (2023-08-13)</h1> <h3>Features</h3> <ul> <li>local types, supporting jest, <code>@jest/globals</code>, vitest (<a href="https://redirect.github.com/testing-library/jest-dom/issues/511">#511</a>) (<a href="4b764b9f6a">4b764b9</a>)</li> </ul> <h3>BREAKING CHANGES</h3> <ul> <li>Removes the extend-expect script. Users should use the default import path or one of the new test platform-specific paths to automatically extend the appropriate "expect" instance.</li> </ul> <p>extend-expect was not documented in the Readme, so this change should have minimal impact.</p> <p>Users can now use the following import paths to automatically extend "expect" for their chosen test platform:</p> <ul> <li><code>@testing-library/jest-dom</code> - jest (<code>@types/jest</code>)</li> <li><code>@testing-library/jest-dom/</code>jest-globals - <code>@jest/globals</code></li> <li><code>@testing-library/jest-dom/</code>vitest - vitest</li> </ul> <p>For example:</p> <p>import '<code>@testing-library/jest-dom/</code>jest-globals'</p> <p>Importing from one of the above paths will augment the appropriate matcher interface for the given test platform, assuming the import is done in a .ts file that is included in the user's tsconfig.json.</p> <p>It's also (still) possible to import the matchers directly without side effects:</p> <p>import * as matchers from '<code>@testing-library/jest-dom/</code>matchers'</p> <ul> <li>Update kcd-scripts</li> <li>Drop node < 14</li> </ul> <h2>v5.17.0</h2> <h1><a href="https://github.com/testing-library/jest-dom/compare/v5.16.5...v5.17.0">5.17.0</a> (2023-07-18)</h1> <h3>Features</h3> <ul> <li>New <code>toHaveAccessibleErrorMessage</code> better implementing the spec, deprecate <code>toHaveErrorMessage</code> (<a href="https://redirect.github.com/testing-library/jest-dom/issues/503">#503</a>) (<a href="d717c66cb4">d717c66</a>)</li> </ul> </blockquote> </details> <details> <summary>Commits</summary> <ul> <li><a href="4b764b9f6a"><code>4b764b9</code></a> feat: local types, supporting jest, <code>@jest/globals</code>, vitest (<a href="https://redirect.github.com/testing-library/jest-dom/issues/511">#511</a>)</li> <li><a href="d717c66cb4"><code>d717c66</code></a> feat: New <code>toHaveAccessibleErrorMessage</code> better implementing the spec, deprec...</li> <li>See full diff in <a href="https://github.com/testing-library/jest-dom/compare/v5.16.5...v6.0.0">compare view</a></li> </ul> </details> <br /> [](https://docs.github.com/en/github/managing-security-vulnerabilities/about-dependabot-security-updates#about-compatibility-scores) Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting `@dependabot rebase`. [//]: # (dependabot-automerge-start) [//]: # (dependabot-automerge-end) --- <details> <summary>Dependabot commands and options</summary> <br /> You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot show <dependency name> ignore conditions` will show all of the ignore conditions of the specified dependency - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself) </details> Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Bracket
Warning
This project is still under construction and considered beta software. Release v1.0.0 will be the first out-of-beta release.
Ladder tournament system meant to be easy to use. Bracket is written in async Python (with FastAPI) and Next.js as frontend using the Mantine library.
Preview
Setup
Database
First create a bracket cluster:
sudo pg_createcluster -u postgres -p 5532 13 bracket
pg_ctlcluster 13 bracket start
Subsequently, create a new bracket_dev database:
sudo -Hu postgres psql -p 5532
CREATE USER bracket_dev WITH PASSWORD 'bracket_dev';
CREATE DATABASE bracket_dev OWNER bracket_dev;
You can do the same but replace the user and database name with:
bracket_ci: for running testsbracket_prod: for a production database
The database URL can be specified per environment in the .env files (see config).
Config
Copy ci.env to prod.env and fill in the values:
PG_DSN: The URL of the PostgreSQL databaseJWT_SECRET: Create a random secret usingopenssl rand -hex 32CORS_ORIGINSandCORS_ORIGIN_REGEX: Specify allowed frontend domain names for CORS (see the FastAPI docs)ADMIN_EMAILandADMIN_PASSWORD: The credentials of the admin user, which is created when initializing the database
Running the frontend and backend
The following starts the frontend and backend for local development:
Frontend
cd frontend
yarn
npm run dev
Backend
cd backend
pipenv install -d
pipenv shell
./run.sh
Languages
TypeScript
51.1%
Python
47.6%
CSS
0.8%
Dockerfile
0.2%