Skip to content

sass-true fails to parse non-standard at-rules #313

@Goodwine

Description

@Goodwine

Input [stackblitz]:

// foo.scss
@hello 'foo'; // <- test works if you delete this line.
@function foo() {
  @return 1;
}
@use '../node_modules/sass-true/sass/true' as *;
@use 'foo';

@include describe('a') {
  @include it('b') {
    @include assert-equal(foo(), 1);
  }
}

I expect this to pass, as the at-rule here is arguably irrelevant to the test.

However I get the following error (exit code 3):

Error: :15:7: missing '{' (line 15)

[...stack trace...]

No specs found

Shouldn't sass-true simply ignore those at-rules?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions