
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
quip-test-utils
Advanced tools
This library contains some helpers intended to make testing Quip live Apps easier.
npm install --save-dev quip-test-utils
applySnapshot(record: Record, data: SnapshotNode, legacyTypes: RecordPropertyDefinition = {})applySnapshot overwrites a record with the deserialized data from data, which
is presumed to be exported via the developer menu from a running live app. It is
useful when exporting a state that you would like to regression test or
otherwise write tests around, but would be challenging to manually recreate by
writing directly to records.
If your old snapshot contains properties that are no longer defined in getProperties (e.g. if you're using a snapshot and have since deprecated a property), you can pass those properties, as they were originally defined, as the last argument.
runMigrations(manifest: Manifest, appVersion: number, record: quip.apps.RootRecord)runMigrations will apply any relevant migrations for the given app version to the record passed. You will likely want to use this in combination with applySnapshot and jest snapshots to verify that your migrations perform as expected before publishing them:
// src/model/root.test.js
import {RootRecord} from "./root";
import manifest from "../../manifest.json";
import recordWithFlipper from "../../test/fixtures/record-with-flipper.json";
test("v42 deprecates the 'flipper' field", () => {
const root = new RootRecord();
quip.testUtils.applySnapshot(root, recordWithFlipper);
expect(root.get("flipper")).toMatchSnapshot();
// manifest has a migration defined for version 42 that mutates "flipper"
await quip.testUtils.runMigrations(manifest, 42, root);
expect(root.get("flipper")).toMatchSnapshot();
});
FAQs
Quip Live Apps Test Utilities
We found that quip-test-utils demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 2 open source maintainers collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.