<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>torilon</author_name>
  <author_url>https://blog.hatena.ne.jp/torilon/</author_url>
  <blog_title>torilon’s diary</blog_title>
  <blog_url>https://torilon.hatenablog.com/</blog_url>
  <categories>
  </categories>
  <description>angular 19で ng testするとgtagでエラーになりテストが動かなかった。 回避方法は tsconfig.spec.jsonのtypesの中に&quot;@types/gtag.js&quot;を追加する 例） { &quot;extends&quot;: &quot;./tsconfig.json&quot;, &quot;compilerOptions&quot;: { &quot;outDir&quot;: &quot;./out-tsc/spec&quot;, &quot;types&quot;: [ &quot;jasmine&quot;, &quot;@angular/localize&quot;, /* ここの末尾にカンマを入れて */ &quot;@types/gtag.js&quot; /* この行を追加 ] }, &quot;include&quot;: [ &quot;src/**/…</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftorilon.hatenablog.com%2Fentry%2F2025%2F12%2F17%2F145216&quot; title=&quot;angular 19：ng testでgtagでエラーを回避 - torilon’s diary&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2025-12-17 14:52:16</published>
  <title>angular 19：ng testでgtagでエラーを回避</title>
  <type>rich</type>
  <url>https://torilon.hatenablog.com/entry/2025/12/17/145216</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
