Skip to content

Commit

Permalink
fix: test path issue #5
Browse files Browse the repository at this point in the history
Signed-off-by: seven <[email protected]>
  • Loading branch information
Blankll committed Sep 23, 2024
1 parent 8ddcf77 commit 9425ae9
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/stack/validate.test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,9 @@ import { validateYaml } from '../../src/stack';
import { RawServerlessIac } from '../../src/types';

const jsonIac = parse(
readFileSync(path.resolve(__dirname, './fixtures/serverless-insignt.yml'), 'utf8'),
readFileSync(path.resolve(__dirname, '../fixtures/serverless-insignt.yml'), 'utf8'),
) as RawServerlessIac;

describe('unit test for validate', () => {
it('should pass the yaml validation when given yaml config is valid', () => {
expect(validateYaml(jsonIac)).toBe(true);
Expand Down

0 comments on commit 9425ae9

Please sign in to comment.