Skip to content

Commit

Permalink
add test that checks generated files are not tampered with
Browse files Browse the repository at this point in the history
  • Loading branch information
Perryvw committed Feb 21, 2025
1 parent 9507836 commit 526d875
Show file tree
Hide file tree
Showing 6 changed files with 3,098 additions and 3,569 deletions.
4 changes: 0 additions & 4 deletions build/vscripts/api/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -113,10 +113,6 @@ function transformFunction(
const originalName = formatArgumentName(argNames[index], index);
const name = extensionName ?? originalName;

if (originalName === extensionName) {
console.log(`Unnecessary argument name override: ${functionIdentifier} ${name}`);
}

if (!/^\w+$/.test(name)) {
console.log(`Invalid argument name: ${functionIdentifier} ${name}`);
}
Expand Down
4 changes: 2 additions & 2 deletions build/vscripts/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { outputFile, outputJson } from '../util';
import { apiDeclarations, apiTypes, validateApi } from './api';
import { apiTypesDeclarations, apiTypesTypes, validateApiTypes } from './api-types';
import { apiDeclarations, apiTypes } from './api';
import { apiTypesDeclarations, apiTypesTypes } from './api-types';
import { generateEnumDeclarations, enumsTypes } from './enums';

export async function generateVScripts() {
Expand Down
Loading

0 comments on commit 526d875

Please sign in to comment.