์ค๋ ์ถ์๋ Ember ์ํ๋ฅผ ์ฌ์ฉํ์ฌ ์๋ก ๋ง๋ ์ฑ์์ ํตํฉ ํ ์คํธ๊ฐ ์คํจํ์ต๋๋ค.
๋ค์ ๋จ๊ณ๋ฅผ ์ํ ํ ๋ฌธ์ ๋ฅผ ์ฌํ ํ๋
ember new test-app
cd test-app
bower install -S ember#alpha
ember g component-test fails
ember test
์ฌ๊ธฐ #13970 ๋ฐ https://github.com/switchfly/ember-test-helpers/pull/167 ์์ ๋ณด๊ณ ๋ ์ง์ ์ ์ธ ๋ฌธ์ ๋ฅผ ์์ ํ์ง๋ง ์ต์์ ์ฝ์ผํธ๊ฐ ์ฌ์ฉ๋๋ ๋ฐฉ์์ผ๋ก ์ธํด ๋ณต์ ๋จ๊ณ๊ฐ ์ฌ์ ํ ๋ฌธ์ ์ ๋๋ค. ์ ๋ฒ ํ ์คํธ ๋์ฐ๋ฏธ.
์ถ๊ฐ ์์ :
[email protected] ์ ๋ณ๊ฒฝ ์ฌํญ์ผ๋ก ๊ธฐ๋ณธ this.render
๊ฐ ์๋ํด์ผ ํฉ๋๋ค(ํ
์คํธ ์ ์ฅ์์ https://github.com/dfreeman/glimmer-integration-failure/pull/1 ์ ์ถ). .
์ผ๋ฐ ember g component x-foo
๋ ํ์ฌ ember-test-helpers์์ this.clearRender()
์ ๋ํ ์ง์ ๋ถ์กฑ์ผ๋ก ์ธํด ์ฌ์ ํ ์คํจํฉ๋๋ค(์์ง ์์
์ค).
[email protected] ํ์ฌ ember g component it-works
๋ณ๊ฒฝ ์์ด ํต๊ณผํฉ๋๋ค. ๋๋ ์์ฐํ๊ธฐ ์ํด https://github.com/dfreeman/glimmer-integration-failure/pull/2 ๋ฅผ ์ ์ถํ์ต๋๋ค.
์ด ์์ ์ด ์๋ฃ๋ ๊ฒ์ผ๋ก ๊ฐ์ฃผํ ๊ฒ์ ๋๋ค(๋ฌธ์ ๊ฐ ์๋ ๊ฒฝ์ฐ ์ ํ๋ฅผ ๊ฑธ์ด ๋ค์ ์ด๊ฒ ์ต๋๋ค).
๊ฐ์ฅ ์ ์ฉํ ๋๊ธ
[email protected] ํ์ฌ
ember g component it-works
๋ณ๊ฒฝ ์์ด ํต๊ณผํฉ๋๋ค. ๋๋ ์์ฐํ๊ธฐ ์ํด https://github.com/dfreeman/glimmer-integration-failure/pull/2 ๋ฅผ ์ ์ถํ์ต๋๋ค.์ด ์์ ์ด ์๋ฃ๋ ๊ฒ์ผ๋ก ๊ฐ์ฃผํ ๊ฒ์ ๋๋ค(๋ฌธ์ ๊ฐ ์๋ ๊ฒฝ์ฐ ์ ํ๋ฅผ ๊ฑธ์ด ๋ค์ ์ด๊ฒ ์ต๋๋ค).