Configure Paperclip with Jest

You can include Paperclip UIs directly in your Jest tests.

Installation

npm install jest-paperclip --save-dev

package.json Config

After installing the jest-paperclip module, You'll need to update the jest.transform property like so:

"jest": {
"transform": {
"^.+\\.pc$": "jest-paperclip"
}
}

After that, you should be able to import *.pc files in Jest tests.