Skip to content

Commit

Permalink
chore(utils): remove html util and associated dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
nokome committed Oct 16, 2024
1 parent 0cd4618 commit d94963f
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 293 deletions.
4 changes: 0 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
"lint:fix": "eslint 'src/**/*.{ts,js}' --fix",
"fixtures": "npx ts-node --files src/__fixtures__/make",
"test": "jest --maxWorkers=4 --testTimeout=120000",
"test:wild": "NOCK_BACK_MODE=wild npm test",
"test:cover": "npm test -- --coverage",
"test:watch": "npm test -- --watchAll",
"test:docker": "docker build --tag stencila/encoda . && docker run -it --rm stencila/encoda",
Expand All @@ -42,15 +41,13 @@
"dependencies": {
"@stencila/jesta": "^1.10.5",
"@stencila/logga": "^4.0.0",
"@stencila/thema": "^2.24.4",
"appdata-path": "^1.0.0",
"async-lock": "^1.4.1",
"fp-ts": "^2.16.5",
"fs-extra": "^11.2.0",
"get-stdin": "^8.0.0",
"is-docker": "^2.2.1",
"js-yaml": "^4.1.0",
"jsdom": "^22.1.0",
"mathjax-node": "^2.1.1",
"mime": "^3.0.0",
"puppeteer": "^11.0.0",
Expand Down Expand Up @@ -83,7 +80,6 @@
"jest": "29.6.4",
"jest-file-snapshot": "0.5.0",
"jest-matcher-utils": "29.6.4",
"nock": "13.3.3",
"semantic-release": "24.1.0",
"ts-jest": "29.1.1",
"ts-node": "10.9.1",
Expand Down
18 changes: 0 additions & 18 deletions src/__tests__/helpers.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import schema from '@stencila/schema'
import callsites from 'callsites'
import fs from 'fs-extra'
import * as nock from 'nock'
import path from 'path'
import * as vfile from '../util/vfile'

Expand Down Expand Up @@ -59,23 +58,6 @@ export const snapshot = (filename: string): string =>
export const output = (filename: string): string =>
path.join(callDir(), '__outputs__', filename)

/**
* Record a nock request / response as a file fixture
*
* Attempt to use other solutions for this e.g. `nock-record`
* and `jest-nock-back` failed because they interfered
* with other tests.
*
* @param filename The filename of the records HTTP request / response
*/
export const nockRecord = async (filename: string) => {
const mode = (process.env.NOCK_BACK_MODE || 'record') as nock.BackMode
nock.back.setMode(mode)
nock.back.fixtures = path.join(callDir(), '__fixtures__')
const result = await nock.back(filename)
return result.nockDone
}

/**
* The directory of the calling test file
*/
Expand Down
76 changes: 0 additions & 76 deletions src/util/html.test.ts

This file was deleted.

195 changes: 0 additions & 195 deletions src/util/html.ts

This file was deleted.

0 comments on commit d94963f

Please sign in to comment.