Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/main' into root-out-legacy-upload
Browse files Browse the repository at this point in the history
  • Loading branch information
Andarist committed Jul 10, 2024
2 parents 8392ef9 + 0bdfaa5 commit 9d9797c
Show file tree
Hide file tree
Showing 78 changed files with 391 additions and 4,385 deletions.
6 changes: 0 additions & 6 deletions .changeset/eight-rice-jog.md

This file was deleted.

5 changes: 5 additions & 0 deletions .changeset/spicy-years-mate.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"replayio": patch
---

Recommend installing `xz` if it's missing and the browser can't be extracted because of that
5 changes: 5 additions & 0 deletions .changeset/tender-waves-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"replayio": patch
---

Gracefully handle missing recordings.log entries
5 changes: 5 additions & 0 deletions Earthfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ build:
COPY . .
RUN yarn --immutable && yarn run build

typecheck:
FROM +build
RUN yarn run typecheck

lint:
FROM +build
RUN yarn run lint
Expand Down Expand Up @@ -62,6 +66,7 @@ e2e:
BUILD +flake

ci:
BUILD +typecheck
BUILD +lint
BUILD +test
BUILD +e2e
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ To use Replay with a Desktop Browser, visit [replay.io](https://www.replay.io/)

## Packages

- [`/replay`](./packages/replay/README.md) CLI for viewing + uploading recordings
- [`/replayio`](./packages/replayio/README.md) CLI for viewing and uploading recordings
- [`/cypress`](./packages/cypress/README.md) Beta Plugin for recording and capturing metadata for Cypress tests.
- [`/playwright`](./packages/playwright/README.md) Beta Plugin for recording and capturing metadata for Playwright tests.
- [`/puppeteer`](./packages/puppeteer/README.md) Experimental Plugin for recording Puppeteer tests.
Expand Down
2 changes: 1 addition & 1 deletion examples/create-react-app-typescript/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dependencies": {
"@playwright/test": "^1.40.1",
"@replayio/playwright": "workspace:^",
"@replayio/replay": "workspace:^",
"@replayio/replay": "latest",
"@testing-library/jest-dom": "^5.16.2",
"@testing-library/react": "^12.1.4",
"@testing-library/user-event": "^13.5.0",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"watch": "turbo watch build --filter=\"./packages/*\"",
"test": "yarn run test:unit",
"test:unit": "yarn workspaces foreach --all --exclude=. --exclude=examples/create-react-app-typescript --exclude=packages/cypress/example --topological run test",
"typecheck": "yarn workspaces foreach --all run typecheck",
"typecheck": "turbo run typecheck --filter=\"./packages/*\"",
"lint": "prettier --check .",
"changeset": "changeset",
"release": "yarn workspaces foreach --no-private --all --topological npm publish --tolerate-republish --access public && changeset tag",
Expand Down
6 changes: 6 additions & 0 deletions packages/cypress/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @replayio/cypress

## 3.1.2

### Patch Changes

- [#592](https://github.com/replayio/replay-cli/pull/592) [`134591c`](https://github.com/replayio/replay-cli/commit/134591ccd4ead6098aa855f2b751b505f43c7b80) Thanks [@Andarist](https://github.com/Andarist)! - Improved resiliency to GitHub API errors when auto-populating PR-related information metadata

## 3.1.1

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion packages/cypress/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@replayio/cypress",
"version": "3.1.1",
"version": "3.1.2",
"description": "Plugin to record your Cypress tests with Replay",
"main": "./dist/index.js",
"exports": {
Expand Down Expand Up @@ -44,6 +44,7 @@
"@types/uuid": "^9.0.1",
"@types/ws": "^8.5.10",
"cypress": "^13.11.0",
"turbo": "^2.0.5",
"typescript": "^5.5.2"
},
"dependencies": {
Expand Down
5 changes: 3 additions & 2 deletions packages/cypress/src/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/// <reference types="cypress" />

import { initLogger, logger } from "@replay-cli/shared/logger";
import { logger } from "@replay-cli/shared/logger";
import { mixpanelAPI } from "@replay-cli/shared/mixpanel/mixpanelAPI";
import { getRuntimePath } from "@replay-cli/shared/runtime/getRuntimePath";
import { setUserAgent } from "@replay-cli/shared/userAgent";
Expand Down Expand Up @@ -265,7 +265,8 @@ const plugin = (

const accessToken = getAuthKey(config);

initLogger(packageName, packageVersion);
logger.initialize(packageName, packageVersion);
logger.identify(accessToken);
mixpanelAPI.initialize({
accessToken,
packageName,
Expand Down
3 changes: 0 additions & 3 deletions packages/cypress/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,6 @@
},
"include": ["src/**/*.ts"],
"references": [
{
"path": "../replay"
},
{
"path": "../test-utils"
}
Expand Down
1 change: 1 addition & 0 deletions packages/jest/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@
"@replayio/test-utils": "workspace:^",
"@types/node": "^20.11.27",
"@types/stack-utils": "^2.0.3",
"turbo": "^2.0.5",
"typescript": "^5.5.2"
},
"dependencies": {
Expand Down
8 changes: 4 additions & 4 deletions packages/jest/src/runner.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,17 @@
import type { JestEnvironment } from "@jest/environment";
import type { TestFileEvent, TestResult } from "@jest/test-result";
import type { Circus, Config } from "@jest/types";
import { logger } from "@replay-cli/shared/logger";
import { setUserAgent } from "@replay-cli/shared/userAgent";
import {
ReplayReporter,
removeAnsiCodes,
getMetadataFilePath as getMetadataFilePathBase,
initMetadataFile,
removeAnsiCodes,
} from "@replayio/test-utils";
import type Runtime from "jest-runtime";
import path from "path";
import * as pkgJson from "../package.json";
import { setUserAgent } from "@replay-cli/shared/userAgent";
import { initLogger } from "@replay-cli/shared/logger";

const runner = require("jest-circus/runner");
const pluginVersion = require("@replayio/jest/package.json").version;
Expand Down Expand Up @@ -39,7 +39,7 @@ const ReplayRunner = async (
sendMessageToJest?: TestFileEvent
): Promise<TestResult> => {
setUserAgent(`${pkgJson.name}/${pkgJson.version}`);
initLogger(pkgJson.name, pkgJson.version);
logger.initialize(pkgJson.name, pkgJson.version);
if (!version) {
try {
version = require(require.resolve("jest/package.json", {
Expand Down
3 changes: 0 additions & 3 deletions packages/jest/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@
},
"include": ["src/**/*.ts"],
"references": [
{
"path": "../replay"
},
{
"path": "../test-utils"
}
Expand Down
3 changes: 1 addition & 2 deletions packages/node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@
"replay-node": "bin/replay-node"
},
"scripts": {
"test": "echo \"Error: no test specified\"",
"typecheck": "echo \"Error: no typecheck specified\""
"test": "echo \"Error: no test specified\""
},
"repository": {
"type": "git",
Expand Down
10 changes: 10 additions & 0 deletions packages/playwright/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,15 @@
# @replayio/playwright

## 3.1.8

### Patch Changes

- [#592](https://github.com/replayio/replay-cli/pull/592) [`134591c`](https://github.com/replayio/replay-cli/commit/134591ccd4ead6098aa855f2b751b505f43c7b80) Thanks [@Andarist](https://github.com/Andarist)! - Improved resiliency to GitHub API errors when auto-populating PR-related information metadata

- [#613](https://github.com/replayio/replay-cli/pull/613) [`8cd22ea`](https://github.com/replayio/replay-cli/commit/8cd22ea858e0b123551384e87ce4c7e38027f849) Thanks [@hbenl](https://github.com/hbenl)! - Add a trailing log line in case another playwright reporter removes our last line

- [#614](https://github.com/replayio/replay-cli/pull/614) [`0ee7425`](https://github.com/replayio/replay-cli/commit/0ee74258c968fe44f437c9c52e9c724f03ba286b) Thanks [@Andarist](https://github.com/Andarist)! - Fixed an issue that could cause the reporter to miss test body steps when `beforeAll` hook was used

## 3.1.7

### Patch Changes
Expand Down
3 changes: 2 additions & 1 deletion packages/playwright/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@replayio/playwright",
"version": "3.1.7",
"version": "3.1.8",
"description": "Configuration utilities for using the Replay browsers with playwright",
"main": "./dist/index.js",
"exports": {
Expand Down Expand Up @@ -31,6 +31,7 @@
"@types/stack-utils": "^2.0.3",
"@types/uuid": "^8.3.4",
"@types/ws": "^8.5.10",
"turbo": "^2.0.5",
"typescript": "^5.5.2"
},
"repository": {
Expand Down
Loading

0 comments on commit 9d9797c

Please sign in to comment.