Skip to content

Commit e8e3d8b

Browse files
committed
Hmm
1 parent 0f54569 commit e8e3d8b

File tree

4 files changed

+21
-6
lines changed

4 files changed

+21
-6
lines changed

apps/repl/tests/test-helper.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,12 @@ import { setup } from 'qunit-dom';
1212
import { setupEmberOnerrorValidation, start as qunitStart } from 'ember-qunit';
1313

1414
import Application from 'limber/app';
15-
import config from 'limber/config/environment';
15+
import config, { enterTestMode } from 'limber/config/environment';
1616

1717
export function start() {
1818
_backburner.DEBUG = true;
1919

20+
enterTestMode();
2021
setApplication(Application.create(config.APP));
2122

2223
Object.assign(window, { getSettledState, getPendingWaiterState, currentURL, currentRouteName });

apps/tutorial/app/app.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import 'limber-ui/theme.css';
22

33
import Application from '@ember/application';
4+
import compatModules from '@embroider/virtual/compat-modules';
45

56
import loadInitializers from 'ember-load-initializers';
67
import Resolver from 'ember-resolver';
78
import config from 'tutorial/config/environment';
89

910
export default class App extends Application {
1011
modulePrefix = config.modulePrefix;
11-
podModulePrefix = config.podModulePrefix;
12-
Resolver = Resolver;
12+
Resolver = Resolver.withModules(compatModules);
1313
}
1414

1515
loadInitializers(App, config.modulePrefix);

apps/tutorial/tests/test-helper.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import { setup } from 'qunit-dom';
1010
import { setupEmberOnerrorValidation, start as qunitStart } from 'ember-qunit';
1111

1212
import Application from 'tutorial/app';
13-
import config from 'tutorial/config/environment';
13+
import config, { enterTestMode } from 'tutorial/config/environment';
1414

1515
export function start() {
16+
enterTestMode();
1617
setApplication(Application.create(config.APP));
1718

1819
// Fast test timeout, because I'm impatient

apps/tutorial/vite.config.js

+15-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,9 @@ import { defineConfig } from 'vite';
22
import { extensions, ember, classicEmberSupport } from '@embroider/vite';
33
import { babel } from '@rollup/plugin-babel';
44
import tailwindcss from '@tailwindcss/vite';
5+
import { kolay } from 'kolay/vite';
56

6-
export default defineConfig({
7+
export default defineConfig(({ command, mode, isSsrBuild, isPreview }) => ({
78
resolve: {
89
extensions,
910
},
@@ -16,6 +17,18 @@ export default defineConfig({
1617
},
1718
},
1819
plugins: [
20+
kolay({
21+
src: 'public/docs',
22+
/**
23+
* Pending: https://github.com/emberjs/ember.js/issues/20419
24+
*/
25+
exclude: mode === 'production' ? [/^x-/, 'keyed-each-blocks'] : [],
26+
/**
27+
* This project has convention a based manifest so we only need directories
28+
*/
29+
onlyDirectories: true,
30+
packages: [],
31+
}),
1932
tailwindcss(),
2033
classicEmberSupport(),
2134
ember(),
@@ -24,4 +37,4 @@ export default defineConfig({
2437
extensions,
2538
}),
2639
],
27-
});
40+
}));

0 commit comments

Comments
 (0)