Skip to content

Commit

Permalink
testing: remove extension in getGithubSamplesGroups
Browse files Browse the repository at this point in the history
  • Loading branch information
mshima committed Nov 1, 2024
1 parent 24cf613 commit 4884ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/testing/github-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { getUnknownGitHubMatrixGroupProperties } from './github-matrix.js';

export const getGithubSamplesGroups = async (samplesGroupFolder: string): Promise<string[]> => {
const samplesFolderContent = await readdir(samplesGroupFolder);
return samplesFolderContent.filter(sample => ['.json', '.js', '.ts', ''].includes(extname(sample)));
return samplesFolderContent.filter(sample => ['.json', '.js', '.ts', ''].includes(extname(sample))).map(sample => sample.split('.')[0]);
};

export const getGithubSamplesGroup = async (
Expand Down

0 comments on commit 4884ca7

Please sign in to comment.