Skip to content

Commit

Permalink
fix flow again
Browse files Browse the repository at this point in the history
  • Loading branch information
cgdibble committed Jan 6, 2024
1 parent c5f79dd commit ec428a4
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/meta.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { getSDKMeta } from "./meta";
const clientId = "foobar123";
const mockScriptSrc = `https://test.paypal.com/sdk/js?client-id=${clientId}`;

function makeMockScriptElement(src = mockScriptSrc): HTMLCanvasElement {
function makeMockScriptElement(src = mockScriptSrc): HTMLScriptElement {
const mockElement = document.createElement("script");
mockElement.setAttribute("src", src);
// eslint-disable-next-line compat/compat
Expand Down
2 changes: 1 addition & 1 deletion src/script.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import { CLIENT_ID_ALIAS } from "./config";
const clientId = "foobar123";
const mockScriptSrc = `https://test.paypal.com/sdk/js?client-id=${clientId}`;

function makeMockScriptElement(src = mockScriptSrc): HTMLCanvasElement {
function makeMockScriptElement(src = mockScriptSrc): HTMLScriptElement {
const mockElement = document.createElement("script");
mockElement.setAttribute("src", src);
// eslint-disable-next-line compat/compat
Expand Down
2 changes: 1 addition & 1 deletion src/session.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
const clientId = "foobar123";
const mockScriptSrc = `https://test.paypal.com/sdk/js?client-id=${clientId}`;

function makeMockScriptElement(src = mockScriptSrc): HTMLCanvasElement {
function makeMockScriptElement(src = mockScriptSrc): HTMLScriptElement {
const mockElement = document.createElement("script");
mockElement.setAttribute("src", src);
// eslint-disable-next-line compat/compat
Expand Down
2 changes: 1 addition & 1 deletion src/tracking.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { getSDKInitTime, setupLogger } from "./tracking";
const clientId = "foobar123";
const mockScriptSrc = `https://test.paypal.com/sdk/js?client-id=${clientId}`;

function makeMockScriptElement(src = mockScriptSrc): HTMLCanvasElement {
function makeMockScriptElement(src = mockScriptSrc): HTMLScriptElement {
const mockElement = document.createElement("script");
mockElement.setAttribute("src", src);
// eslint-disable-next-line compat/compat
Expand Down
2 changes: 2 additions & 0 deletions vite.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ const define = {
}),
};

// $FlowIssue
export default defineConfig({
define,
esbuild: {
Expand All @@ -52,5 +53,6 @@ export default defineConfig({
plugins: [esbuildFlowPlugin()],
},
},
// $FlowIssue
plugins: [flowPlugin({ exclude: "" })],
});

0 comments on commit ec428a4

Please sign in to comment.