We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b4d51f3 commit e96a40aCopy full SHA for e96a40a
1 file changed
js-api-spec/legacy/importer.test.ts
@@ -87,6 +87,24 @@ describe('import precedence:', () => {
87
).toEqualIgnoringWhitespace('a { from: cwd; }')
88
);
89
}));
90
+
91
+ // Regression test for embedded host.
92
+ it('falls back to load path if imports list is empty', () =>
93
+ sandbox(dir => {
94
+ dir.write({
95
+ 'test.scss': 'a {from: load path}',
96
+ });
97
98
+ expect(
99
+ sass
100
+ .renderSync({
101
+ data: '@import "test"',
102
+ includePaths: [dir.root],
103
+ importer: [],
104
+ })
105
+ .css.toString()
106
+ ).toEqualIgnoringWhitespace('a { from: load path; }')
107
+ }));
108
});
109
110
0 commit comments