Skip to content

Commit

Permalink
small update
Browse files Browse the repository at this point in the history
  • Loading branch information
carmelc committed Aug 25, 2024
1 parent e225153 commit 75fef8d
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 33 deletions.
41 changes: 11 additions & 30 deletions .idea/workspace.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions __tests__/common/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export const getTestCdnImpl: () => CDN & {

return {
name: 'test' as CdnType,
getPackageJsonPaths: async (packageName, packageVersion) => ['/package.json'],
getPackageJsonPaths: async () => ['/package.json'],
getFileUniqueIdentifier: createKey,
fetchFromCdn: async (fileIdentifier: CdnFileIdentifier) => {
const forcedError = errorsQueue.pop();
Expand Down Expand Up @@ -102,7 +102,7 @@ export function validateTypescript(code: string, baseDir: string): {
isValid: boolean;
messages?: string[]
} {
const mainFilePath = path.join(baseDir, tempy.file({extension: 'ts'})); // Construct file path inside the directory
const mainFilePath = path.join(baseDir, tempy.file({extension: 'ts'}));
ts.sys.writeFile(mainFilePath, code);

const program = ts.createProgram([mainFilePath], {});
Expand Down
2 changes: 1 addition & 1 deletion __tests__/e2e/cdns-e2e.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import tempy from 'tempy';
import { bundle, CdnType } from '../../src';
import fs from 'fs';

describe('Site SDK - Fixed versions', () => {
describe('Various CDNs', () => {
jest.setTimeout(60000);
let tempDir: string;
let siteBookingsDtsPathUnpkg: string;
Expand Down

0 comments on commit 75fef8d

Please sign in to comment.