Install & Compatibility
Where this runs
tested against v? · npm install
Install × environment matrix
Each cell = how many times install + import succeeded across repeated harness runs. Partial = flaky.
glibc = Debian/Ubuntu slim · musl = Alpine Linux
muslnode 18–226 runs
build_error
glibcnode 18–226 runs
build_error
Code
Verified usage
Verified import paths — ran on the pinned version, not inferred.
createQuipTestRecord
✓ import { createQuipTestRecord } from 'quip-test-utils'
✗ const createQuipTestRecord = require('quip-test-utils')
Package is ESM-only; CommonJS require will not work.
mockQuipApp
✓ import { mockQuipApp } from 'quip-test-utils'
✗ import { MockQuipApp } from 'quip-test-utils'
Function is not a class; wrong casing will cause undefined.
simulateUserAction
✓ import { simulateUserAction } from 'quip-test-utils'
✗ import simulateUserAction from 'quip-test-utils'
Default export is not provided; named import required.
cleanupTestRecords
✓ import { cleanupTestRecords } from 'quip-test-utils'
✗ import { cleanUpTestRecords } from 'quip-test-utils'
Function name uses lowercase 'c' in 'cleanup'; camelCase sensitive.
This shows basic setup: mock app environment, create test record, simulate user interaction, and cleanup.
import { createQuipTestRecord, mockQuipApp, simulateUserAction, cleanupTestRecords } from 'quip-test-utils';
// Mock Quip App environment
mockQuipApp(process.env.QUIP_APP_ID ?? 'test-app-id');
// Create a test record
const record = createQuipTestRecord('task', { title: 'Test task', status: 'open' });
// Simulate user action
simulateUserAction({ type: 'click', element: record.get('title') });
console.log('Record created:', record.getData());
// Clean up after test
cleanupTestRecords();
Errors
Common errors & fixes
TypeError: mockQuipApp is not a function
Incorrect import: using default import instead of named.
fixUse `import { mockQuipApp } from 'quip-test-utils'`. Module not found: Can't resolve 'quip-test-utils' in ...
Package not installed or not in node_modules.
fixRun `npm install quip-test-utils --save-dev` or equivalent.
SyntaxError: Cannot use import statement outside a module
Using ESM import in a CommonJS context without type: module.
fixAdd 'type': 'module' to package.json or use .mjs extension.
Audit
Dependencies
No dependency data recorded yet.