mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-07 20:31:06 -05:00
[misc] make build scripts happy again
- move pdf.js tests into test/unit/js - add env override to build script config file - update build scripts
This commit is contained in:
parent
6a3da482c4
commit
76e749777d
27 changed files with 3 additions and 3 deletions
|
@ -2,7 +2,7 @@ clsi
|
|||
--data-dirs=cache,compiles,db,output
|
||||
--dependencies=
|
||||
--docker-repos=gcr.io/overleaf-ops
|
||||
--env-add=
|
||||
--env-add=ENABLE_PDF_CACHING="true"
|
||||
--env-pass-through=TEXLIVE_IMAGE
|
||||
--node-version=12.22.3
|
||||
--public-repo=True
|
||||
|
|
|
@ -10,7 +10,7 @@
|
|||
"start": "node $NODE_APP_OPTIONS app.js",
|
||||
"test:acceptance:_run": "mocha --recursive --reporter spec --timeout 15000 --exit $@ test/acceptance/js",
|
||||
"test:acceptance": "npm run test:acceptance:_run -- --grep=$MOCHA_GREP",
|
||||
"test:unit:_run": "mocha --recursive --reporter spec $@ test/unit/js test/unit/lib",
|
||||
"test:unit:_run": "mocha --recursive --reporter spec $@ test/unit/js",
|
||||
"test:unit": "npm run test:unit:_run -- --grep=$MOCHA_GREP",
|
||||
"nodemon": "nodemon --config nodemon.json",
|
||||
"lint": "eslint --max-warnings 0 --format unix .",
|
||||
|
|
|
@ -3,7 +3,7 @@ const Path = require('path')
|
|||
const { expect } = require('chai')
|
||||
const { parseXrefTable } = require('../../../app/lib/pdfjs/parseXrefTable')
|
||||
const PATH_EXAMPLES = 'test/acceptance/fixtures/examples/'
|
||||
const PATH_SNAPSHOTS = 'test/unit/lib/snapshots/'
|
||||
const PATH_SNAPSHOTS = 'test/unit/js/snapshots/pdfjs/'
|
||||
const EXAMPLES = fs.readdirSync(PATH_EXAMPLES)
|
||||
|
||||
function snapshotPath(example) {
|
Loading…
Reference in a new issue