open-index/open-npm huggingface dataset:
npm package: @scifeon/test
Description: Scifeon Test CLI.
Author: Scifeon
Latest version: 0.0.1

# @scifeon/test

A CLI and testing framework for running end-to-end tests against Scifeon instances using Playwright.

## Installation

```bash
npm install --save-dev @scifeon/test
```

### Peer Dependencies

This package requires `@playwright/test` as a peer dependency:

```bash
npm install --save-dev @playwright/test
```

### Browser Installation

After installing the package, install the Chromium browser required for tests:

```bash
npx scifeon-test install
```

## CLI Usage

The package provides the `scifeon-test` CLI binary.

### Run Tests

```bash
scifeon-test run [testPath] [options]
```

**Arguments:**
- `testPath` - Path to test files or directory (defaults to current working directory)

**Options:**
- `--base-url <url>` - Base URL for the Scifeon instance (default: `http://localhost:5000`)
- `--test-run-id <id>` - Test run identifier (auto-generated if not provided)
- `--headed` - Run browser in headed mode for debugging (default: headless)

**Environment Variables:**
- `SCIFEON_BASE_URL` - Alternative to `--base-url` option
- `SCIFEON_TEST_RUN_ID` - Alternative to `--test-run-id` option

**Passing Arguments to Playwright:**

Use `--` to pass additional arguments directly to Playwright:

```bash
scifeon-test run ./tests --base-url http://localhost:5000 -- --grep "login"
```

**Examples:**

```bash
# Run all tests in current directory against local instance
scifeon-test run

# Run tests from a specific directory
scifeon-test run ./e2e/tests

# Run against a remote instance with headed browser
scifeon-test run --base-url https://staging.example.com --headed

# Run specific tests using Playwright grep
scifeon-test run -- --grep "authentication"
```

### Install Browser

```bash
scifeon-test install
```

Installs the Chromium browser required for running tests.
npm package: @sciflow/schema-core
Description: Core schema types and utilities for the [SciFlow](https://docs.sciflow.org) editor. Used by `@sciflow/schema-prosemirror` and other SciFlow packages.
Latest version: 0.0.3

# @sciflow/schema-core

Core schema types and utilities for the [SciFlow](https://docs.sciflow.org) editor. Used by `@sciflow/schema-prosemirror` and other SciFlow packages.

## Building

From the workspace root:

```bash
npx nx build @sciflow/schema-core
```

## Running unit tests

```bash
npx nx test @sciflow/schema-core
```

Tests use [Vitest](https://vitest.dev/).
npm package: @sciflow/schema-prosemirror
Description: ProseMirror schema and node/mark definitions for the [SciFlow](https://docs.sciflow.org) editor. Builds on `@sciflow/schema-core` and is consumed by `@sciflow/editor-core` and `@sciflow/editor-start`.
Latest version: 0.0.3

# @sciflow/schema-prosemirror

ProseMirror schema and node/mark definitions for the [SciFlow](https://docs.sciflow.org) editor. Builds on `@sciflow/schema-core` and is consumed by `@sciflow/editor-core` and `@sciflow/editor-start`.

## Building

From the workspace root:

```bash
npx nx build @sciflow/schema-prosemirror
```

## Running unit tests

```bash
npx nx test @sciflow/schema-prosemirror
```

Tests use [Vitest](https://vitest.dev/).
npm package: @sciice/component
Description: [![NPM version](https://img.shields.io/npm/v/@sciice/component.svg?style=flat)](https://www.npmjs.com/package/@sciice/component)
Latest version: 1.0.2

# 公共组件包

[![NPM version](https://img.shields.io/npm/v/@sciice/component.svg?style=flat)](https://www.npmjs.com/package/@sciice/component)