Skip to content

Commit

Permalink
fix: ci (#328)
Browse files Browse the repository at this point in the history
  • Loading branch information
guybedford authored Oct 30, 2023
1 parent 4439358 commit 3523ffb
Show file tree
Hide file tree
Showing 7 changed files with 44 additions and 38 deletions.
2 changes: 1 addition & 1 deletion test/api/preloads.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ assert.strictEqual(staticDeps.length, 5);
alias: "react17",
target: "react@17",
});
assert.strictEqual(staticDeps.length, 6);
assert.strictEqual(staticDeps.length, 7);
}

const json = generator.getMap();
Expand Down
2 changes: 1 addition & 1 deletion test/api/update.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ import assert from "assert";

await generator.update("lit");
const json = generator.getMap();
const expectedVersion = (await lookup("lit@latest")).resolved.version;
const expectedVersion = (await lookup("lit@2")).resolved.version;

assert.strictEqual(
json.imports.lit,
Expand Down
1 change: 1 addition & 0 deletions test/html/breaks.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ assert.strictEqual(
"}\n" +
"</script>\n" +
'<link rel="modulepreload" href="https://ga.jspm.io/npm:object-assign@4.1.1/index.js" />\n' +
'<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/cjs/react.production.min.js" />\n' +
'<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/index.js" />\n' +
'<link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png">\n' +
' <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png">\n' +
Expand Down
3 changes: 3 additions & 0 deletions test/html/indent.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ await checkIndent(
}
</script>
<link rel="modulepreload" href="/react.js" />
<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/cjs/react.production.min.js" />
<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/index.js" />
<script type="module">
import 'react';
Expand Down Expand Up @@ -110,6 +111,7 @@ await checkIndent(
}
</script>
<link rel="modulepreload" href="https://ga.jspm.io/npm:object-assign@4.1.1/index.js" />
<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/cjs/react.production.min.js" />
<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/index.js" />
</head>
<body>
Expand Down Expand Up @@ -159,6 +161,7 @@ await checkIndent(
}
</script>
<link rel="modulepreload" href="https://ga.jspm.io/npm:object-assign@4.1.1/index.js" />
<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/cjs/react.production.min.js" />
<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/index.js" />
<script type="module">
import 'react';
Expand Down
1 change: 1 addition & 0 deletions test/html/injectionpoint.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ assert.strictEqual(
"}\n" +
"</script>\n" +
'<link rel="modulepreload" href="https://ga.jspm.io/npm:object-assign@4.1.1/index.js" />\n' +
'<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/cjs/react.production.min.js" />\n' +
'<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/index.js" />\n' +
'<script type="module">\n' +
' import "react";\n' +
Expand Down
3 changes: 2 additions & 1 deletion test/html/maps.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ assert.strictEqual(
"}\n" +
"</script>\n" +
'<link rel="modulepreload" href="/react.js" />\n' +
'<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/cjs/react.production.min.js" />\n' +
'<link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/index.js" />\n' +
'<script type="module">\n' +
" import 'react';\n" +
Expand Down Expand Up @@ -92,7 +93,7 @@ assert.strictEqual(
"<!-- Generated by @jspm/generator - https://github.com/jspm/generator -->\n" +
`<script async src="${esmsUrl}" crossorigin="anonymous"></script>\n` +
'<script type="importmap">{"imports":{"react":"https://ga.jspm.io/npm:react@17.0.2/index.js"},"scopes":{"https://ga.jspm.io/":{"object-assign":"https://ga.jspm.io/npm:object-assign@4.1.1/index.js"}}}</script>\n' +
'<link rel="modulepreload" href="https://ga.jspm.io/npm:object-assign@4.1.1/index.js" /><link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/index.js" />\n' +
'<link rel="modulepreload" href="https://ga.jspm.io/npm:object-assign@4.1.1/index.js" /><link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/cjs/react.production.min.js" /><link rel="modulepreload" href="https://ga.jspm.io/npm:react@17.0.2/index.js" />\n' +
'<script type="module">\n' +
" import 'react';\n" +
"</script>\n"
Expand Down
70 changes: 35 additions & 35 deletions test/test.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,72 +10,72 @@
"scopes": {
"../": {
"#fetch": "../dist/fetch-native.js",
"@babel/core": "https://ga.jspm.io/npm:@babel/core@7.22.10/lib/index.js",
"@babel/core": "https://ga.jspm.io/npm:@babel/core@7.23.2/lib/index.js",
"@babel/plugin-syntax-import-assertions": "https://ga.jspm.io/npm:@babel/plugin-syntax-import-assertions@7.22.5/lib/index.js",
"@babel/preset-typescript": "https://ga.jspm.io/npm:@babel/preset-typescript@7.22.5/lib/index.js",
"@babel/preset-typescript": "https://ga.jspm.io/npm:@babel/preset-typescript@7.23.2/lib/index.js",
"@jspm/import-map": "https://ga.jspm.io/npm:@jspm/import-map@1.0.7/dist/map.js",
"crypto": "https://ga.jspm.io/npm:@jspm/core@2.0.1/nodelibs/browser/crypto.js",
"es-module-lexer/js": "https://ga.jspm.io/npm:es-module-lexer@1.3.0/dist/lexer.asm.js",
"es-module-lexer/js": "https://ga.jspm.io/npm:es-module-lexer@1.3.1/dist/lexer.asm.js",
"fs": "https://ga.jspm.io/npm:@jspm/core@2.0.1/nodelibs/browser/fs.js",
"process": "https://ga.jspm.io/npm:@jspm/core@2.0.1/nodelibs/browser/process-production.js",
"sver": "https://ga.jspm.io/npm:sver@1.8.4/sver.js",
"sver/convert-range.js": "https://ga.jspm.io/npm:sver@1.8.4/convert-range.js",
"url": "https://ga.jspm.io/npm:@jspm/core@2.0.1/nodelibs/browser/url.js"
},
"https://ga.jspm.io/": {
"#lib/config/files/index.js": "https://ga.jspm.io/npm:@babel/core@7.22.10/lib/config/files/index-browser.js",
"#lib/config/resolve-targets.js": "https://ga.jspm.io/npm:@babel/core@7.22.10/lib/config/resolve-targets-browser.js",
"#lib/transform-file.js": "https://ga.jspm.io/npm:@babel/core@7.22.10/lib/transform-file-browser.js",
"#node.js": "https://ga.jspm.io/npm:browserslist@4.21.9/browser.js",
"#lib/config/files/index.js": "https://ga.jspm.io/npm:@babel/core@7.23.2/lib/config/files/index-browser.js",
"#lib/config/resolve-targets.js": "https://ga.jspm.io/npm:@babel/core@7.23.2/lib/config/resolve-targets-browser.js",
"#lib/transform-file.js": "https://ga.jspm.io/npm:@babel/core@7.23.2/lib/transform-file-browser.js",
"#node.js": "https://ga.jspm.io/npm:browserslist@4.22.1/browser.js",
"@ampproject/remapping": "https://ga.jspm.io/npm:@ampproject/remapping@2.2.1/dist/remapping.umd.js",
"@babel/code-frame": "https://ga.jspm.io/npm:@babel/code-frame@7.22.10/lib/index.js",
"@babel/compat-data/native-modules": "https://ga.jspm.io/npm:@babel/compat-data@7.22.9/native-modules.js",
"@babel/compat-data/plugins": "https://ga.jspm.io/npm:@babel/compat-data@7.22.9/plugins.js",
"@babel/core": "https://ga.jspm.io/npm:@babel/core@7.22.10/lib/index.js",
"@babel/generator": "https://ga.jspm.io/npm:@babel/generator@7.22.10/lib/index.js",
"@babel/code-frame": "https://ga.jspm.io/npm:@babel/code-frame@7.22.13/lib/index.js",
"@babel/compat-data/native-modules": "https://ga.jspm.io/npm:@babel/compat-data@7.23.2/native-modules.js",
"@babel/compat-data/plugins": "https://ga.jspm.io/npm:@babel/compat-data@7.23.2/plugins.js",
"@babel/core": "https://ga.jspm.io/npm:@babel/core@7.23.2/lib/index.js",
"@babel/generator": "https://ga.jspm.io/npm:@babel/generator@7.23.0/lib/index.js",
"@babel/helper-annotate-as-pure": "https://ga.jspm.io/npm:@babel/helper-annotate-as-pure@7.22.5/lib/index.js",
"@babel/helper-compilation-targets": "https://ga.jspm.io/npm:@babel/helper-compilation-targets@7.22.10/lib/index.js",
"@babel/helper-create-class-features-plugin": "https://ga.jspm.io/npm:@babel/helper-create-class-features-plugin@7.22.10/lib/index.js",
"@babel/helper-environment-visitor": "https://ga.jspm.io/npm:@babel/helper-environment-visitor@7.22.5/lib/index.js",
"@babel/helper-function-name": "https://ga.jspm.io/npm:@babel/helper-function-name@7.22.5/lib/index.js",
"@babel/helper-compilation-targets": "https://ga.jspm.io/npm:@babel/helper-compilation-targets@7.22.15/lib/index.js",
"@babel/helper-create-class-features-plugin": "https://ga.jspm.io/npm:@babel/helper-create-class-features-plugin@7.22.15/lib/index.js",
"@babel/helper-environment-visitor": "https://ga.jspm.io/npm:@babel/helper-environment-visitor@7.22.20/lib/index.js",
"@babel/helper-function-name": "https://ga.jspm.io/npm:@babel/helper-function-name@7.23.0/lib/index.js",
"@babel/helper-hoist-variables": "https://ga.jspm.io/npm:@babel/helper-hoist-variables@7.22.5/lib/index.js",
"@babel/helper-member-expression-to-functions": "https://ga.jspm.io/npm:@babel/helper-member-expression-to-functions@7.22.5/lib/index.js",
"@babel/helper-module-imports": "https://ga.jspm.io/npm:@babel/helper-module-imports@7.22.5/lib/index.js",
"@babel/helper-module-transforms": "https://ga.jspm.io/npm:@babel/helper-module-transforms@7.22.9/lib/index.js",
"@babel/helper-member-expression-to-functions": "https://ga.jspm.io/npm:@babel/helper-member-expression-to-functions@7.23.0/lib/index.js",
"@babel/helper-module-imports": "https://ga.jspm.io/npm:@babel/helper-module-imports@7.22.15/lib/index.js",
"@babel/helper-module-transforms": "https://ga.jspm.io/npm:@babel/helper-module-transforms@7.23.0/lib/index.js",
"@babel/helper-optimise-call-expression": "https://ga.jspm.io/npm:@babel/helper-optimise-call-expression@7.22.5/lib/index.js",
"@babel/helper-plugin-utils": "https://ga.jspm.io/npm:@babel/helper-plugin-utils@7.22.5/lib/index.js",
"@babel/helper-replace-supers": "https://ga.jspm.io/npm:@babel/helper-replace-supers@7.22.9/lib/index.js",
"@babel/helper-replace-supers": "https://ga.jspm.io/npm:@babel/helper-replace-supers@7.22.20/lib/index.js",
"@babel/helper-simple-access": "https://ga.jspm.io/npm:@babel/helper-simple-access@7.22.5/lib/index.js",
"@babel/helper-skip-transparent-expression-wrappers": "https://ga.jspm.io/npm:@babel/helper-skip-transparent-expression-wrappers@7.22.5/lib/index.js",
"@babel/helper-split-export-declaration": "https://ga.jspm.io/npm:@babel/helper-split-export-declaration@7.22.6/lib/index.js",
"@babel/helper-string-parser": "https://ga.jspm.io/npm:@babel/helper-string-parser@7.22.5/lib/index.js",
"@babel/helper-validator-identifier": "https://ga.jspm.io/npm:@babel/helper-validator-identifier@7.22.5/lib/index.js",
"@babel/helper-validator-option": "https://ga.jspm.io/npm:@babel/helper-validator-option@7.22.5/lib/index.js",
"@babel/helpers": "https://ga.jspm.io/npm:@babel/helpers@7.22.10/lib/index.js",
"@babel/highlight": "https://ga.jspm.io/npm:@babel/highlight@7.22.10/lib/index.js",
"@babel/parser": "https://ga.jspm.io/npm:@babel/parser@7.22.10/lib/index.js",
"@babel/helper-validator-identifier": "https://ga.jspm.io/npm:@babel/helper-validator-identifier@7.22.20/lib/index.js",
"@babel/helper-validator-option": "https://ga.jspm.io/npm:@babel/helper-validator-option@7.22.15/lib/index.js",
"@babel/helpers": "https://ga.jspm.io/npm:@babel/helpers@7.23.2/lib/index.js",
"@babel/highlight": "https://ga.jspm.io/npm:@babel/highlight@7.22.20/lib/index.js",
"@babel/parser": "https://ga.jspm.io/npm:@babel/parser@7.23.0/lib/index.js",
"@babel/plugin-syntax-jsx": "https://ga.jspm.io/npm:@babel/plugin-syntax-jsx@7.22.5/lib/index.js",
"@babel/plugin-syntax-typescript": "https://ga.jspm.io/npm:@babel/plugin-syntax-typescript@7.22.5/lib/index.js",
"@babel/plugin-transform-modules-commonjs": "https://ga.jspm.io/npm:@babel/plugin-transform-modules-commonjs@7.22.5/lib/index.js",
"@babel/plugin-transform-typescript": "https://ga.jspm.io/npm:@babel/plugin-transform-typescript@7.22.10/lib/index.js",
"@babel/template": "https://ga.jspm.io/npm:@babel/template@7.22.5/lib/index.js",
"@babel/traverse": "https://ga.jspm.io/npm:@babel/traverse@7.22.10/lib/index.js",
"@babel/types": "https://ga.jspm.io/npm:@babel/types@7.22.10/lib/index.js",
"@babel/plugin-transform-modules-commonjs": "https://ga.jspm.io/npm:@babel/plugin-transform-modules-commonjs@7.23.0/lib/index.js",
"@babel/plugin-transform-typescript": "https://ga.jspm.io/npm:@babel/plugin-transform-typescript@7.22.15/lib/index.js",
"@babel/template": "https://ga.jspm.io/npm:@babel/template@7.22.15/lib/index.js",
"@babel/traverse": "https://ga.jspm.io/npm:@babel/traverse@7.23.2/lib/index.js",
"@babel/types": "https://ga.jspm.io/npm:@babel/types@7.23.0/lib/index.js",
"@jridgewell/gen-mapping": "https://ga.jspm.io/npm:@jridgewell/gen-mapping@0.3.3/dist/gen-mapping.umd.js",
"@jridgewell/resolve-uri": "https://ga.jspm.io/npm:@jridgewell/resolve-uri@3.1.1/dist/resolve-uri.umd.js",
"@jridgewell/set-array": "https://ga.jspm.io/npm:@jridgewell/set-array@1.1.2/dist/set-array.umd.js",
"@jridgewell/sourcemap-codec": "https://ga.jspm.io/npm:@jridgewell/sourcemap-codec@1.4.15/dist/sourcemap-codec.umd.js",
"@jridgewell/trace-mapping": "https://ga.jspm.io/npm:@jridgewell/trace-mapping@0.3.19/dist/trace-mapping.umd.js",
"@jridgewell/trace-mapping": "https://ga.jspm.io/npm:@jridgewell/trace-mapping@0.3.20/dist/trace-mapping.umd.js",
"ansi-styles": "https://ga.jspm.io/npm:ansi-styles@3.2.1/index.js",
"browserslist": "https://ga.jspm.io/npm:browserslist@4.21.9/index.js",
"browserslist": "https://ga.jspm.io/npm:browserslist@4.22.1/index.js",
"buffer": "https://ga.jspm.io/npm:@jspm/core@2.0.1/nodelibs/browser/buffer.js",
"caniuse-lite/dist/unpacker/agents": "https://ga.jspm.io/npm:caniuse-lite@1.0.30001519/dist/unpacker/agents.js",
"caniuse-lite/dist/unpacker/agents": "https://ga.jspm.io/npm:caniuse-lite@1.0.30001554/dist/unpacker/agents.js",
"chalk": "https://ga.jspm.io/npm:chalk@2.4.2/index.js",
"color-convert": "https://ga.jspm.io/npm:color-convert@1.9.3/index.js",
"color-name": "https://ga.jspm.io/npm:color-name@1.1.3/index.js",
"convert-source-map": "https://ga.jspm.io/npm:convert-source-map@1.9.0/index.js",
"convert-source-map": "https://ga.jspm.io/npm:convert-source-map@2.0.0/index.js",
"debug": "https://ga.jspm.io/npm:debug@4.3.4/src/browser.js",
"electron-to-chromium/versions": "https://ga.jspm.io/npm:electron-to-chromium@1.4.490/versions.js",
"electron-to-chromium/versions": "https://ga.jspm.io/npm:electron-to-chromium@1.4.566/versions.js",
"escape-string-regexp": "https://ga.jspm.io/npm:escape-string-regexp@1.0.5/index.js",
"fs": "https://ga.jspm.io/npm:@jspm/core@2.0.1/nodelibs/browser/fs.js",
"gensync": "https://ga.jspm.io/npm:gensync@1.0.0-beta.2/index.js",
Expand Down

0 comments on commit 3523ffb

Please sign in to comment.