@jbrowse/img 2.3.2 → 2.3.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@jbrowse/img",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.3",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"module": "esm/index.js",
|
|
6
6
|
"author": "JBrowse Team",
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"@babel/runtime": "^7.17.9",
|
|
30
30
|
"@emotion/cache": "^11.7.1",
|
|
31
31
|
"@emotion/react": "^11.9.0",
|
|
32
|
-
"@jbrowse/plugin-linear-genome-view": "^2.3.
|
|
33
|
-
"@jbrowse/react-linear-genome-view": "^2.3.
|
|
32
|
+
"@jbrowse/plugin-linear-genome-view": "^2.3.3",
|
|
33
|
+
"@jbrowse/react-linear-genome-view": "^2.3.3",
|
|
34
34
|
"abortcontroller-polyfill": "^1.7.3",
|
|
35
35
|
"canvas": "^2.9.1",
|
|
36
36
|
"jsdom": "^20.0.3",
|
|
@@ -44,5 +44,5 @@
|
|
|
44
44
|
"publishConfig": {
|
|
45
45
|
"access": "public"
|
|
46
46
|
},
|
|
47
|
-
"gitHead": "
|
|
47
|
+
"gitHead": "283e0387ccd5acc9f092cf00804d1fcac212e68d"
|
|
48
48
|
}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
/* eslint-disable tsdoc/syntax */
|
|
1
2
|
/**
|
|
2
3
|
* @jest-environment node
|
|
3
4
|
*/
|
|
@@ -12,17 +13,25 @@ import 'abortcontroller-polyfill/dist/abortcontroller-polyfill-only'
|
|
|
12
13
|
import { Image, createCanvas } from 'canvas'
|
|
13
14
|
import fetch, { Headers, Response, Request } from 'node-fetch'
|
|
14
15
|
|
|
16
|
+
// @ts-ignore
|
|
15
17
|
global.fetch = fetch
|
|
18
|
+
// @ts-ignore
|
|
16
19
|
global.Headers = Headers
|
|
20
|
+
// @ts-ignore
|
|
17
21
|
global.Response = Response
|
|
22
|
+
// @ts-ignore
|
|
18
23
|
global.Request = Request
|
|
19
24
|
|
|
20
25
|
const { document } = new JSDOM(`...`).window
|
|
21
26
|
global.document = document
|
|
27
|
+
|
|
28
|
+
// @ts-ignore
|
|
22
29
|
global.nodeImage = Image
|
|
30
|
+
// @ts-ignore
|
|
23
31
|
global.nodeCreateCanvas = createCanvas
|
|
24
32
|
|
|
25
33
|
xtest('renders a region with --session and --config args', async () => {
|
|
34
|
+
// @ts-ignore
|
|
26
35
|
const result = await renderRegion({
|
|
27
36
|
session: path.join(__dirname, '../test/clingen_session.json'),
|
|
28
37
|
config: path.join(__dirname, '../data/config.json'),
|
|
@@ -32,6 +41,7 @@ xtest('renders a region with --session and --config args', async () => {
|
|
|
32
41
|
}, 40000)
|
|
33
42
|
|
|
34
43
|
xtest('renders a region with --session, --tracks, and --assembly args', async () => {
|
|
44
|
+
// @ts-ignore
|
|
35
45
|
const result = await renderRegion({
|
|
36
46
|
session: path.join(__dirname, '../test/clingen_session.json'),
|
|
37
47
|
tracks: path.join(__dirname, '../data/tracks.json'),
|
|
@@ -42,8 +52,7 @@ xtest('renders a region with --session, --tracks, and --assembly args', async ()
|
|
|
42
52
|
}, 40000)
|
|
43
53
|
|
|
44
54
|
test('renders volvox with variety of args', async () => {
|
|
45
|
-
const fp = f => path.join(__dirname, '../data/volvox/' + f)
|
|
46
|
-
console.error = jest.fn()
|
|
55
|
+
const fp = (f: string) => path.join(__dirname, '../data/volvox/' + f)
|
|
47
56
|
const result = await renderRegion({
|
|
48
57
|
fasta: fp('volvox.fa'),
|
|
49
58
|
trackList: [
|
|
@@ -106,8 +115,7 @@ xtest('renders volvox with remote urls', async () => {
|
|
|
106
115
|
}, 20000)
|
|
107
116
|
|
|
108
117
|
test('renders volvox with variety of args (noRasterize)', async () => {
|
|
109
|
-
const fp = f => path.join(__dirname, '../data/volvox/' + f)
|
|
110
|
-
console.error = jest.fn()
|
|
118
|
+
const fp = (f: string) => path.join(__dirname, '../data/volvox/' + f)
|
|
111
119
|
const result = await renderRegion({
|
|
112
120
|
fasta: fp('volvox.fa'),
|
|
113
121
|
trackList: [
|
|
File without changes
|