box / box/box-content-preview

document how to include under Karma

Open
#576 2 comments 1 reaction 0 assignees View on GitHub
question
Dominant language
JavaScript
Stars
120
Forks
137
Avg merge
12h 36m
Merged PRs (30d)
17

Description

Due to #521, we can't use our regular build chain with this, so we're having trouble with integrating code that uses this into our test suite.

Can you suggest a way for us to set up our `karma.conf` so that `Box.Preview` is available at test time?

Preferably without having to re-fetch preview.js from the network with every test run.

Or is there a mock implementation of Box.Preview we should load instead?

Contributor guide

Open the contributing guide

Research direction

Start by reviewing the Karma configuration in karma.conf and the integration context described in issue #521. Determine how Box.Preview from preview.js can be made available without fetching it on every test run, or whether a mock is documented. Done means the repository explains a repeatable local setup for the Karma test suite.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
documentation, testing-qa
Issue type
Documentation
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.