1
0
mirror of https://github.com/Unleash/unleash.git synced 2024-10-18 20:09:08 +02:00
unleash.unleash/frontend
renovate[bot] 83cbaf5917
chore(deps): update jest monorepo (#3136)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
|
[@types/jest](https://togithub.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/jest)
([source](https://togithub.com/DefinitelyTyped/DefinitelyTyped)) |
[`29.2.5` ->
`29.4.0`](https://renovatebot.com/diffs/npm/@types%2fjest/29.2.5/29.4.0)
|
[![age](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.4.0/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.4.0/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.4.0/compatibility-slim/29.2.5)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/@types%2fjest/29.4.0/confidence-slim/29.2.5)](https://docs.renovatebot.com/merge-confidence/)
|
| [jest](https://jestjs.io/)
([source](https://togithub.com/facebook/jest)) | [`29.3.1` ->
`29.4.2`](https://renovatebot.com/diffs/npm/jest/29.3.1/29.4.2) |
[![age](https://badges.renovateapi.com/packages/npm/jest/29.4.2/age-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://badges.renovateapi.com/packages/npm/jest/29.4.2/adoption-slim)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://badges.renovateapi.com/packages/npm/jest/29.4.2/compatibility-slim/29.3.1)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://badges.renovateapi.com/packages/npm/jest/29.4.2/confidence-slim/29.3.1)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

<details>
<summary>facebook/jest</summary>

###
[`v29.4.2`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#&#8203;2942)

[Compare
Source](https://togithub.com/facebook/jest/compare/v29.4.1...v29.4.2)

##### Features

- `[@jest/core]` Instrument significant lifecycle events with
[`performance.mark()`](https://nodejs.org/docs/latest-v16.x/api/perf_hooks.html#performancemarkname-options)
([#&#8203;13859](https://togithub.com/facebook/jest/pull/13859))

##### Fixes

- `[expect, @&#8203;jest/expect]` Provide type of `actual` as a generic
argument to `Matchers` to allow better-typed extensions
([#&#8203;13848](https://togithub.com/facebook/jest/pull/13848))
- `[jest-circus]` Added explicit mention of test failing because
`done()` is not being called in error message
([#&#8203;13847](https://togithub.com/facebook/jest/pull/13847))
- `[jest-runtime]` Handle CJS re-exports of node core modules from ESM
([#&#8203;13856](https://togithub.com/facebook/jest/pull/13856))
- `[jest-transform]` Downgrade `write-file-atomic` to v4
([#&#8203;13853](https://togithub.com/facebook/jest/pull/13853))
- `[jest-worker]` Ignore IPC messages not intended for Jest
([#&#8203;13543](https://togithub.com/facebook/jest/pull/13543))

##### Chore & Maintenance

- `[*]` make sure to exclude `.eslintcache` from published module
([#&#8203;13832](https://togithub.com/facebook/jest/pull/13832))
- `[docs]` Cleanup incorrect links in CHANGELOG.md
([#&#8203;13857](https://togithub.com/facebook/jest/pull/13857))

###
[`v29.4.1`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#&#8203;2941)

[Compare
Source](https://togithub.com/facebook/jest/compare/v29.4.0...v29.4.1)

##### Features

- `[expect, jest-circus, @&#8203;jest/types]` Implement
`numPassingAsserts` of testResults to track the number of passing
asserts in a test
([#&#8203;13795](https://togithub.com/facebook/jest/pull/13795))
- `[jest-core]` Add newlines to JSON output
([#&#8203;13817](https://togithub.com/facebook/jest/pull/13817))
- `[@jest/reporters]` Automatic log folding in GitHub Actions Reporter
([#&#8203;13626](https://togithub.com/facebook/jest/pull/13626))

##### Fixes

- `[@jest/expect-utils]` `toMatchObject` diffs should include `Symbol`
properties
([#&#8203;13810](https://togithub.com/facebook/jest/pull/13810))
- `[jest-runtime]` Handle missing `replaceProperty`
([#&#8203;13823](https://togithub.com/facebook/jest/pull/13823))
- `[@jest/types]` Add partial support for `done` callbacks in typings of
`each` ([#&#8203;13756](https://togithub.com/facebook/jest/pull/13756))

###
[`v29.4.0`](https://togithub.com/facebook/jest/blob/HEAD/CHANGELOG.md#&#8203;2940)

[Compare
Source](https://togithub.com/facebook/jest/compare/v29.3.1...v29.4.0)

##### Features

- `[expect, @&#8203;jest/expect-utils]` Support custom equality testers
([#&#8203;13654](https://togithub.com/facebook/jest/pull/13654))
- `[jest-config, jest-worker]` Use `os.availableParallelism` if
available to calculate number of workers to spawn
([#&#8203;13738](https://togithub.com/facebook/jest/pull/13738))
- `[@jest/globals, jest-mock]` Add `jest.replaceProperty()` that
replaces property value
([#&#8203;13496](https://togithub.com/facebook/jest/pull/13496))
- `[jest-haste-map]` ignore Sapling vcs directories (`.sl/`)
([#&#8203;13674](https://togithub.com/facebook/jest/pull/13674))
- `[jest-resolve]` Support subpath imports
([#&#8203;13705](https://togithub.com/facebook/jest/pull/13705),
[#&#8203;13723](https://togithub.com/facebook/jest/pull/13723),
[#&#8203;13777](https://togithub.com/facebook/jest/pull/13777))
- `[jest-runtime]` Add `jest.isolateModulesAsync` for scoped module
initialization of asynchronous functions
([#&#8203;13680](https://togithub.com/facebook/jest/pull/13680))
- `[jest-runtime]` Add `jest.isEnvironmentTornDown` function
([#&#8203;13741](https://togithub.com/facebook/jest/pull/13741))
- `[jest-test-result]` Added `skipped` and `focused` status to
`FormattedTestResult`
([#&#8203;13700](https://togithub.com/facebook/jest/pull/13700))
- `[jest-transform]` Support for asynchronous `createTransformer`
([#&#8203;13762](https://togithub.com/facebook/jest/pull/13762))

##### Fixes

- `[jest-environment-node]` Fix non-configurable globals
([#&#8203;13687](https://togithub.com/facebook/jest/pull/13687))
- `[@jest/expect-utils]` `toMatchObject` should handle `Symbol`
properties
([#&#8203;13639](https://togithub.com/facebook/jest/pull/13639))
- `[jest-mock]` Fix `mockReset` and `resetAllMocks` `undefined` return
value([#&#8203;13692](https://togithub.com/facebook/jest/pull/13692))
- `[jest-resolve]` Add global paths to `require.resolve.paths`
([#&#8203;13633](https://togithub.com/facebook/jest/pull/13633))
- `[jest-resolve]` Correct node core module detection when using `node:`
specifiers
([#&#8203;13806](https://togithub.com/facebook/jest/pull/13806))
- `[jest-runtime]` Support WASM files that import JS resources
([#&#8203;13608](https://togithub.com/facebook/jest/pull/13608))
- `[jest-runtime]` Use the `scriptTransformer` cache in `jest-runner`
([#&#8203;13735](https://togithub.com/facebook/jest/pull/13735))
- `[jest-runtime]` Enforce import assertions when importing JSON in ESM
([#&#8203;12755](https://togithub.com/facebook/jest/pull/12755) &
[#&#8203;13805](https://togithub.com/facebook/jest/pull/13805))
- `[jest-snapshot]` Make sure to import `babel` outside of the sandbox
([#&#8203;13694](https://togithub.com/facebook/jest/pull/13694))
- `[jest-transform]` Ensure the correct configuration is passed to
preprocessors specified multiple times in the `transform` option
([#&#8203;13770](https://togithub.com/facebook/jest/pull/13770))

##### Chore & Maintenance

- `[@jest/fake-timers]` Update `@sinonjs/fake-timers`
([#&#8203;13612](https://togithub.com/facebook/jest/pull/13612))
- `[docs]` Improve custom puppeteer example to prevent worker warnings
([#&#8203;13619](https://togithub.com/facebook/jest/pull/13619))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Enabled.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

👻 **Immortal**: This PR will be recreated if closed unmerged. Get
[config help](https://togithub.com/renovatebot/renovate/discussions) if
that's undesired.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://app.renovatebot.com/dashboard#github/Unleash/unleash).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNC4xNDIuMSIsInVwZGF0ZWRJblZlciI6IjM0LjE0Mi4xIn0=-->

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-02-17 18:19:34 +00:00
..
cypress refactor: remove variants per environment feature flag (#3102) 2023-02-14 14:02:02 +00:00
public
src feat: export/import plausible tracking (#3145) 2023-02-17 16:02:07 +02:00
.editorconfig
.gitignore
.nvmrc
.prettierignore
.prettierrc
cypress.json
index.html ui flags replaced in index.html (#2617) 2022-12-07 14:31:27 +02:00
index.js
orval.config.js
package.json chore(deps): update jest monorepo (#3136) 2023-02-17 18:19:34 +00:00
README.md
tsconfig.json Add multiple tags (#3032) 2023-02-03 12:28:06 +02:00
tsconfig.node.json
vercel.json
vite.config.ts fix: preload error (#2980) 2023-01-24 20:40:03 +01:00
yarn.lock chore(deps): update jest monorepo (#3136) 2023-02-17 18:19:34 +00:00

frontend

This directory contains the Unleash Admin UI frontend app.

Run with a local instance of the unleash-api

First, start the unleash-api backend on port 4242. Then, start the frontend dev server:

cd ~/frontend
yarn install
yarn run start

Run with a sandbox instance of the Unleash API

Alternatively, instead of running unleash-api on localhost, you can use a remote instance:

cd ~/frontend
yarn install
yarn run start:sandbox

Running end-to-end tests

We have a set of Cypress tests that run on the build before a PR can be merged so it's important that you check these yourself before submitting a PR. On the server the tests will run against the deployed Heroku app so this is what you probably want to test against:

yarn run start:sandbox

In a different shell, you can run the tests themselves:

yarn run e2e:heroku

If you need to test against patches against a local server instance, you'll need to run that, and then run the end to end tests using:

yarn run e2e

You may also need to test that a feature works against the enterprise version of unleash. Assuming the Heroku instance is still running, this can be done by:

yarn run start:enterprise
yarn run e2e

Generating the OpenAPI client

The frontend uses an OpenAPI client generated from the backend's OpenAPI spec. Whenever there are changes to the backend API, the client should be regenerated:

./scripts/generate-openapi.sh

This script assumes that you have a running instance of the enterprise backend at http://localhost:4242. The new OpenAPI client will be generated from the runtime schema of this instance. The target URL can be changed by setting the UNLEASH_OPENAPI_URL env var.

Analyzing bundle size

npx vite-bundle-visualizer in the root of the frontend directory