Jump to content

Connect SuperML | Leeroopedia MCP: Equip your AI agents with best practices, code verification, and debugging knowledge. Powered by Leeroo — building Organizational Superintelligence. Contact us at founders@leeroo.com.

Implementation:Apache Spark UI Test NPM Lock

From Leeroopedia


Knowledge Sources
Domains Testing, JavaScript
Last Updated 2026-02-08 22:00 GMT

Overview

NPM lock file that pins exact versions of all npm dependencies for the Spark Web UI test suite to ensure reproducible builds.

Description

ui-test/package-lock.json is an auto-generated lockfile (lockfileVersion 3) that records the complete resolved dependency tree for the ui-test project. It pins exact versions, registry URLs, and integrity hashes for Jest 30.x, jest-environment-jsdom 30.x, jQuery 3.7.x, and all their transitive dependencies including JSDOM, Babel, and various testing utilities.

Usage

This file is automatically used by `npm ci` or `npm install` within the `ui-test/` directory to install the Web UI testing framework (Jest + JSDOM). It ensures all developers and CI environments use identical dependency versions for UI tests.

Code Reference

Source Location

Signature

{
  "name": "spark-ui-test",
  "lockfileVersion": 3,
  "requires": true,
  "packages": {
    "": {
      "devDependencies": {
        "jest": "^30.x",
        "jest-environment-jsdom": "^30.x",
        "jquery": "^3.7.x"
      }
    }
  }
}

Import

# Used implicitly by npm
cd ui-test/ && npm ci

I/O Contract

Inputs

Name Type Required Description
package.json JSON Yes Declares the top-level test dependencies
npm registry Network Yes NPM registry for resolving packages

Outputs

Name Type Description
node_modules/ Directory Installed testing dependencies with pinned versions

Usage Examples

Install UI Test Dependencies

# From the ui-test/ directory, install locked dependencies
cd ui-test/
npm ci  # Uses package-lock.json for deterministic install

# Then run tests
npx jest

Related Pages

Page Connections

Double-click a node to navigate. Hold to expand connections.
Principle
Implementation
Heuristic
Environment